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
WinRM Fails To Start on Windows Server NOT R2
Access 2007 Union Query With Linked Tables
Server 2008R2 and XP Roaming Profiles
SQL Server 2005 Linked Server Oracle 9i Error message ORA-12154
Can't log into domain
Use Access to move email messages between folders
Microsoft MOLP licensing search
How to reference a control on a tab page that is not currently displayed
How to load a MDI form from a Login form
size of Mailboxes