• Set Command (Access SR2)

    Author
    Topic
    #357748

    I am creating a recordset using the set command below in an ON format in a report:

    Set rst = mydb.OpenRecordset(“combined gen med by Dept”)

    In the Combined gen med by dept query, I have a parameter requesting the date. I only want to extract certain information. I am prompt and I enter in the date and then I get an error message stating too few parameters.

    Any suggestions???

    Thanks,
    Deborah

    Viewing 0 reply threads
    Author
    Replies
    • #532117

      Here’s my 2cents
      A few of suggestions for you to try:
      1) You may want to use a query name without spaces. It simplifies things greatly!
      2) Although it’s an optional argument, I would include the TYPE argument of the OpenRecordset method (i.e. dbOpenSnapshot or dbOpenDynaset).
      3) If those don’t work, try posting the SQL of your query here. Maybe someone will be able to spot the problem from that.

      HTH thumbup

    Viewing 0 reply threads
    Reply To: Set Command (Access SR2)

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

    Your information: