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
Common.Logging and Log4Net.xml file not found issue
Showing user's online availability... what do i need?
dot replace with "," in VB
Configuring Exchange 2010 (Ports/DNS/Send and Receive Connectors)
is there a way to programmatically change folder permissions in windows vista?
In VB.Net how does one call a function name retrieved from a table?
Conditional formatting based on previous record detail
type mismatch error when creating an Outlook mail item from Access VBA
Add Alias to Union query
Radgrid displays data only after the first postback ...