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
Simple SQL Join Query Syntax Issue
Cannot create Web app for Shared Service Provider setup in Sharepoint 2007
Insert ArrayList into SQL Database
Tables with fixed number of rows
DoCmd.RunMacro Problem/Question
Need help with combobox not selecting the correct record
Raising Domain Functional Level from Windows 2000 to 2003
VB.NET: get control by name and Reflection performance
SCCM Application to delete old Computers from SCCM Database & Active Directory?
Sending and Receiving Data like a Dataset using WCF between two or more programs over internet without IIS Configurations