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
App Stops at breakpoint after they have been removed
User can not access control panel
How to over-ride the "Delete Sub Folders and Files" special permission
how to make CSS for the web site developed in asp.net using VS2005
Debug Export to Excel and Run Macro
How to Display a User Control on Form in CODE
In SQL query how to use If statement that if column value blank then assign value Empty else Not Empty
Limit the number of attendee's to a class
Application.RunCommand acCmdSubformFormView Causes Runtime error 2501
Loop select statement and update rows with the results?