wvandenberg
Technical User
Hi all,
I have a toggle button and have implemented the following code in the BeforeUpdate event:
The problem is that the togglebutton stays depressed even with the .Undo line of code. Can anyone see any problems with my code? Any suggestions to get the toggle to be set back to False?
Thanks in advance,
Wendy
I have a toggle button and have implemented the following code in the BeforeUpdate event:
Code:
Private Sub tglDate_BeforeUpdate(Cancel As Integer)
If Not ApplyCriteria Then
Me.tglDate.Undo
Cancel = True
End If
End Sub
The problem is that the togglebutton stays depressed even with the .Undo line of code. Can anyone see any problems with my code? Any suggestions to get the toggle to be set back to False?
Thanks in advance,
Wendy