• Resetting parameter filter (A2K)

    • This topic has 2 replies, 2 voices, and was last updated 23 years ago.
    Author
    Topic
    #371388

    I have a button that applies a parameter query (filter) with DoCmd.ApplyFilter “q2GetOneIncidentIDRecord” . Another button, with “Me.FilterOn = False” turns the filter off.

    When I press the filter button I am prompted for an Incident ID. The query (filter) does work. Pressing the second button does remove the filter. However, pressing the first button does not invoke the parameter pop up again, but rather just shows the originally filtered record.

    What is the proper way to apply, remove, and then reapply a filter with a parameter?

    Thanks,

    Randy

    Viewing 1 reply thread
    Author
    Replies
    • #590205

      In my post, above, I said “Another button, with “Me.FilterOn = False” turns the filter off.” I changed that to “DoCmd.ShowAllRecords” with the same result. Then I changed it to:
      DoCmd.ShowAllRecords
      DoCmd.ShowAllRecords
      … and it works fine. That still doesn’t answer my question. And why should I have to enter this command twice to make it work?

      Thanks

    • #590251

      Me.Filter = “”

    Viewing 1 reply thread
    Reply To: Resetting parameter filter (A2K)

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

    Your information: