Good Morning,
I need some serious help programming a “Clear All” command button in an Access 2007 form. I have tried several codes found online without success. I have conceded to the fact that I’m lacking basic Access programming skills. Please help.
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o> </o>
I would like to program a command button in my form that will change all values in my table field from -1 to 0. The only thing happens when running these codes is the on-focus highlight disappears from the last checkbox focus point. No other changes were found.
<o> </o>
Table Name=MSTTable
Table Field Name=ChkBxA
Form Name=MST_Form4
Form Button name=ClearAll
<o> </o>
<o> </o>
Also tried this code as well
<o> </o>
I need some serious help programming a “Clear All” command button in an Access 2007 form. I have tried several codes found online without success. I have conceded to the fact that I’m lacking basic Access programming skills. Please help.
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o> </o>
I would like to program a command button in my form that will change all values in my table field from -1 to 0. The only thing happens when running these codes is the on-focus highlight disappears from the last checkbox focus point. No other changes were found.
<o> </o>
Table Name=MSTTable
Table Field Name=ChkBxA
Form Name=MST_Form4
Form Button name=ClearAll
<o> </o>
Code:
[/SIZE][/FONT]
[FONT=Calibri][SIZE=3]Private Sub ClearAll_Click()[/SIZE][/FONT]
[FONT=Calibri][SIZE=3]DoCmd.RunSQL "UPDATE [MSTTable] SET ChkBxA=0;"[/SIZE][/FONT]
[FONT=Calibri][SIZE=3]End Sub[/SIZE][/FONT]
[FONT=Calibri][SIZE=3]
Also tried this code as well
<o> </o>
Code:
[/SIZE][/FONT]
[FONT=Calibri][SIZE=3]Private Sub ClearAll_Click()[/SIZE][/FONT]
[FONT=Calibri][SIZE=3]DoCmd.RunSQL "UPDATE MSTTable SET ChkBxA=True;"[/SIZE][/FONT]
[FONT=Calibri][SIZE=3]End Sub[/SIZE][/FONT]
[FONT=Calibri][SIZE=3]