M
M Skabialka
Some of my database users like to filter items on forms so they can scroll
through a small number of records looking for something. However in Access
2007 if they then close the form without removing the filter it becomes part
of the properties for the form and next time it opens filtered. I tried
adding each of these:
DoCmd.RunCommand acCmdRemoveFilterSort
Me.FilterOn = False
DoCmd.ShowAllRecords
when the form closes but it doesn't remove the filter. In fact removing the
filter before closing the form also doesn't stop it from saving the filter
anyway.
Is there a setting I can change that removes filters when forms are closed?
It seems odd that a user can add a filter which changes a form's properties
and are not asked if they want to save the changes, but if I go into design
mode and remove that filter I have to approve the change when it is saved.
Or is this an Access glitch that I need a patch for?
Mich
through a small number of records looking for something. However in Access
2007 if they then close the form without removing the filter it becomes part
of the properties for the form and next time it opens filtered. I tried
adding each of these:
DoCmd.RunCommand acCmdRemoveFilterSort
Me.FilterOn = False
DoCmd.ShowAllRecords
when the form closes but it doesn't remove the filter. In fact removing the
filter before closing the form also doesn't stop it from saving the filter
anyway.
Is there a setting I can change that removes filters when forms are closed?
It seems odd that a user can add a filter which changes a form's properties
and are not asked if they want to save the changes, but if I go into design
mode and remove that filter I have to approve the change when it is saved.
Or is this an Access glitch that I need a patch for?
Mich