Clear Yes/No field in form with a command button

JimFlood2424

New member
Local time
Yesterday, 23:48
Joined
Apr 9, 2020
Messages
4
I have a Yes/No field in a form for selecting the record. I would like to have a command button that would reset (clear the check mark) in all the records.
Does anyone know if this can be done?
 
CurrentDb.Execute "UPDATE table SET field = False"

Is this a multi-user database? Multiple simultaneous users will conflict.
 
CurrentDb.Execute "UPDATE table SET field = False"

Is this a multi-user database? Multiple simultaneous users will conflict.
> Is this a multi-user database? Multiple simultaneous users will conflict.
Can you explain that more? What conflict would you expect, and how would you guard against it?
 
If multiple users are simultaneously checking and unchecking field in table, they are in conflict and output will be wrong for everyone. Arbitrary selection of records is seldom efficient or practical. Selection is normally based on criteria like date range or zip code, etc. Review http://allenbrowne.com/ser-62.html
 
There are some other approaches for recording selections without requiring a field in a table.
 

Users who are viewing this thread

Back
Top Bottom