Toggle Filter On and Off

K

Kirk P.

I've got this code in a command button on a form that applies a filter to a
check box control

Me.Filter = "DUPLICATE = -1"
Me.FilterOn = True

Filter works just fine when you click the button - is there a way to remove
the filter (to show all records) when you click the button again? Basically
want ability to toggle between "all records" and only those where chkDups is
checked.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top