• How to modify a query

    Author
    Topic
    #365927

    How to modify a query

    Viewing 0 reply threads
    Author
    Replies
    • #565962

      Arage,
      If you want to use a value in a control on your form as a criteria in a stored query you very often don

      • #566176

        yes I understand that Claus, but what I meant is that my text control could hold more than one entry to display. If I create a parameter like you mentioned above, it will only accept one value, not more than one like I am trying to achieve.

        • #566201

          Arage,
          Is this a continuation of your post on numerous entries in a textbox? I.e. is what you are asking really how to deal with that in a WHERE clause?

          • #566203

            in a manner of speaking yes, Claus it is a continuation with the exception that the previous report was all about opening a report not a query. And the applyFilter method of the doCmd object will allow you to specify the WHERE conditon, whereas the openQuery method will not.

            • #566212

              If you have to do it in VBA I suggest you consider using DoCmd.RunSQL.
              Then you are free to compose your SQL stmt as you wish incl. the construction of the WHERE clause you need for your job.

    Viewing 0 reply threads
    Reply To: How to modify a query

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: