The attached Access database (inside zip file), contains one object (1 Macro).
1. Right-Click and Export the Macro to YOUR database.
2. Open your database, Right-Click the Macro and Open in Design View.
3. Update the Action Arguments (Object Name) of the OutputTo Macro Action.
4. Right Click the SQL Statement (in the Action Arguments of the RunSQL Macro Action) and Click Zoom:
Code:
UPDATE MyTableName SET MyTableName.MyCheckboxFieldName = False
WHERE (((MyTableName.MyCheckboxFieldName)=True));
a) Change MyTableName (3 instances) to match the name of your Table
b) Change MyCheckboxFieldName (2 instances) to match the name of your Checkbox's field name
5. Add the Macro to your Command Button's OnClick Event.
-RC