Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to quickly clear yes/no field

Status
Not open for further replies.

fishtek

Technical User
Aug 21, 2002
56
US
I have a boolean field in a table that users check yes or no to filter unrelated records in a query. Is there a quick way with code or other to allow users to quickly clear out all checks in the field before starting a new filter? I suppose they could sort to bring all checks to the top and then remove, but I was hoping to accomplish with something like a clear button. Thanks for any help.
 
In the Click event procedure of the button:
DoCmd.RunSQL "UPDATE yourTable SET yourBooleanField=False"

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top