reset or clear filters button

kevin19

Registered User.
Local time
Today, 14:54
Joined
Jan 28, 2013
Messages
81
i have created a multi field search form that comprises of combo boxes and text boxes. When I run the query everything's great!
I created a button to remove all the filters using DoCmd.RunCommand acCmdRemoveAllFilters but I got error msg saying that the command is not available at present! I am using MS Access 2007
Can someone please help me find an alternative solution? Thanks!
 
Attach this code to a command button:
Code:
me.yourtextboxnames.value=""
me.requery
 
;) Your help is greatly appreciated! It works perfectly! Thank you very much!!!
 

Users who are viewing this thread

Back
Top Bottom