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
Do not spell check or grammar was skipped.
Help! finding entities in a scenario.
excel macro find selected range to use within macro
SQL - Find records in one table not in another
Excel copy from sheet1 to sheet2
Expected user-defined type, not project
Togglelink
SBS 2008 Can't connect to my RWW from outside my network
How do I disable File Download Security warning dialog box when trying to download a file from Internet Explorer
Need to gain access to secured folder that has access denied permission problems