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
SetItem in CListCtrl failing to set text
Revision history in Office 2007
Crystal Report Wizard Add-In in Microsoft Access 2007 Requesting a Password
Server 2008 to 2003 forest as a new Domain Controller
Help with Hyper-V Planning for Intel Modular Server
URGENT - 2003 Server - this system does not permit you to logon interactivally
Excel interop
aspx/c# looping through data from within body
Problems when running VB.NET app as a scheduled task
I keep getting this message while I am on the google.com webpage: "Google would like to have access to your location" (see pic)