Using Access 2007. When I apply a filter to my db, if I save and close, the next time I open the db, the filter is still present. If I select Clear All Filters from the ribbon, this does not happen. The filter is completely cleared and the db reopens with no filters applied.
I want to include a button to Clear All Filters. I have tried the following code in the button event:
Me.FilterOn = ""
Me.Filteron = False
also
Me.FilterOn = False
Me.FilterOn = ""
And all sorts of variations on this theme.
Clicking the button clears the filter for the session, but the next time I open the db, the filter reappears.
This does not happen when I use the Clear Filters in the ribbon. It clears the filter for the session and it does not reappear the next time the db is opened.
What is the code for the button in order to emulate clicking on the Clear All Filters in the ribbon (under 'Advanced' in the sort and filter section)?
When I open the form in design view, the code(s) I have tried do not clear the Filter property under the data tab. Clicking on the Ribbon Clear All Filters does clear it.
I appreciate any help you can give me. Thanks.
McLigs
I want to include a button to Clear All Filters. I have tried the following code in the button event:
Me.FilterOn = ""
Me.Filteron = False
also
Me.FilterOn = False
Me.FilterOn = ""
And all sorts of variations on this theme.
Clicking the button clears the filter for the session, but the next time I open the db, the filter reappears.
This does not happen when I use the Clear Filters in the ribbon. It clears the filter for the session and it does not reappear the next time the db is opened.
What is the code for the button in order to emulate clicking on the Clear All Filters in the ribbon (under 'Advanced' in the sort and filter section)?
When I open the form in design view, the code(s) I have tried do not clear the Filter property under the data tab. Clicking on the Ribbon Clear All Filters does clear it.
I appreciate any help you can give me. Thanks.
McLigs