Microsoft
Software
Hardware
Network
Question : Clear ALL checkboxs with button action
So the code I received -
Private Sub Clear_Click()
Me![CheckBox].Value = No
End Sub
Works but only one the one record that is displayed in the split form. I need the button to clear all the values in the datasheet as well as the one displayed record. Might there be a way to clear data stored in a database column?
Thanks
Answer : Clear ALL checkboxs with button action
Replace:
Me![CheckBox].Value = No
with:
DoCmd.RunSQL "UPDATE myTable SET fldCheckbox = 0;"
always work from a backup. Replace myTable and fldCheckbox with your actual table and field names.
Random Solutions
How can I get an accurate age to display in an Access form?
How to handle attachment-type fields in Access 2007
Are Dell PCs with same OEM number LEGAL ?
Microsoft Office Communicator 2007 R2 auto login enternally what not a member of Domain??
Windows Media player wont play Netflix online movies
How to copy section of each field from Colm 1 to Colm 2 in excel
How can I change the identity property of a column without setting the wrong seed?
How to refresh the view in an SDI application
recovering *Contacts* from an old .OST file???
Re-write the script for Copy/Paste