Associate
- Joined
- 31 Dec 2002
- Posts
- 458
Hi, for some reason the following VBA code is not working. I have three check boxes and at least one of them must be selected:
If (chk1 + chk2 + chk3) = 0 Then
MsgBox "Please select at least one check box!"
Exit Sub
End If
Any ideas appreciated, this is driving me up the wall as it works on another form in the Before Update event using Cancel = True.
the above code is in the click event of a command button on an unbound form.
If (chk1 + chk2 + chk3) = 0 Then
MsgBox "Please select at least one check box!"
Exit Sub
End If
Any ideas appreciated, this is driving me up the wall as it works on another form in the Before Update event using Cancel = True.
the above code is in the click event of a command button on an unbound form.