Clearing a checkbox

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I used a macro to refresh to clear the filter in a form. There are also
checkboxes in the form and Refresh is not resetting the checkboxs for each
record. How can I both clear the filter and the checkboxes?
 
I used a macro to refresh to clear the filter in a form. There are also
checkboxes in the form and Refresh is not resetting the checkboxs for each
record. How can I both clear the filter and the checkboxes?

You can reset all the check boxes in your table using an Update query:
CurrentDb.Execute "Update YourTable Set YourTable.[CheckBoxField] =
0;",dbFailOnError

You really don't need to 'clear' a filter.
Just set the FilterOn property to False.
Using code within the form:
Me.FilterOn = False
 

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

Back
Top