O
oxicottin
Hello, Im sure this has been asked several times but Im having trouble
figuring this out. I have eight check boxes and one of them has to be checked
before the form is closed. I have used the included code for two boxes in the
unload event on another form and it works great but on my new form I have
eight. What do I need to add to this code to be able to acomplish this task
for eight chk boxes? Thanks!!!!
Private Sub Form_Unload(Cancel As Integer)
If Me!Chk1 = False And Me!Chk2 = False Then
MsgBox "You must fill bla bla bla"
Cancel = True
End If
figuring this out. I have eight check boxes and one of them has to be checked
before the form is closed. I have used the included code for two boxes in the
unload event on another form and it works great but on my new form I have
eight. What do I need to add to this code to be able to acomplish this task
for eight chk boxes? Thanks!!!!
Private Sub Form_Unload(Cancel As Integer)
If Me!Chk1 = False And Me!Chk2 = False Then
MsgBox "You must fill bla bla bla"
Cancel = True
End If