Reset checked boxes to default (uncheck)

A

AL HAMI

how to reset checked boxes automatically to default status (uncheck) in form
object in Access Programming?
 
F

fredg

how to reset checked boxes automatically to default status (uncheck) in form
object in Access Programming?

Assuming the check box is a field in a table:

CurrentDb.Execute "Update YourTable Set YourTable.CheckBoxName = 0;",
dbFailOnError

You could also use RunSQL:

DoCmd.SetWarnings False
DoCmd.RunSQL "Update YourTable Set YourTable.CheckBoxName = 0;"
DoCmd.SetWarnings True
 

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

Top