I have a form, frmUSPSReturnReceipts, with a control named
NotExpectingGreenTickets. The control's Exit event procedure
follows:
Private Sub NotExpectingGreenTickets_Exit(Cancel As Integer)
If IsNull(Me!NotExpectingGreenTickets) Then
DoCmd.CancelEvent
Exit Sub
End If
End Sub
I slipped in a MsgBox statement that ensures me DoCmd.CancelEvent
runs. I thought cancelling this event meant exactly that the Exit
event would, in fact, be canceled. It doesn't seem logical that other
events normally occurring after an Exit event. But they do. Is that
what was intended? If so, what exactly is the point of canceling an
event. The Exit Sub statement prevents further code in the procedure
from running. I thought CancelEvent was supposed to do something
more.