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 to refresh a Tree View from another Form
How to give non-administrator rights to modify data sources ODBC Administrator
Parent form Subform firing order
Permissions on sub_folder are incorrectly ordered...
vb.net check if form is open
Excel - How to split a fullname column into seperate firstname and surname columns
How do I install aTube Catcher 1.0 rc2 setup.231 program?
Access - Macro to Import External Data
Problem with update query
<CollectionViewSource.Sort<wbr />Descriptio<wbr />n>