D
DRMOB
I am having difficulty getting this right. When I put a check in Waive10%
I'd like to have a message appear asking "Are you sure you want to Waive the
10%?", If you choose yes the check remains, if you choose No, the check does
not remain. Also, if you uncheck Waive% you should get a message "You will
NOT be waiving the 10%" If you choose OK the check does not remain, if you
choose Cancel, the check will remain. The following only half works, it does
not give me the Yes/No option or the OK/Cancel option. Any help is greatly
appreciated.
Private Sub Waive10__BeforeUpdate(Cancel As Integer)
If Me![Waive10%] = True Then
Yes = True
No = False
MsgBox "You are waiving the 10%."
ElseIf Me![Waive10%] = False Then
OK = True
Cancel = False
MsgBox "You will not be waiving the 10%"
End If
End Sub
I'd like to have a message appear asking "Are you sure you want to Waive the
10%?", If you choose yes the check remains, if you choose No, the check does
not remain. Also, if you uncheck Waive% you should get a message "You will
NOT be waiving the 10%" If you choose OK the check does not remain, if you
choose Cancel, the check will remain. The following only half works, it does
not give me the Yes/No option or the OK/Cancel option. Any help is greatly
appreciated.
Private Sub Waive10__BeforeUpdate(Cancel As Integer)
If Me![Waive10%] = True Then
Yes = True
No = False
MsgBox "You are waiving the 10%."
ElseIf Me![Waive10%] = False Then
OK = True
Cancel = False
MsgBox "You will not be waiving the 10%"
End If
End Sub