Hi there.
In my Form_Current() event, i have some logic that looks like:
If StudyNo.Value = Null Then
MsgBox ("Missing Study Number.")
Exit Sub
End If
If txtInterviewDate.Value = Null Then
MsgBox ("Missing interview date. Use the calendar control to select an interview date.")
Exit Sub
End If
What I'd like to see happen is when the user tries to navigate away from the current record using the VCR controls created by the wizard, this code is executed first thing.
What's happening is that these messages don't appear, but the message from the system is appearing after a long while - stating that certain fields are mandatory. (based on my table design).
What am i doing wrong?
thanks.
In my Form_Current() event, i have some logic that looks like:
If StudyNo.Value = Null Then
MsgBox ("Missing Study Number.")
Exit Sub
End If
If txtInterviewDate.Value = Null Then
MsgBox ("Missing interview date. Use the calendar control to select an interview date.")
Exit Sub
End If
What I'd like to see happen is when the user tries to navigate away from the current record using the VCR controls created by the wizard, this code is executed first thing.
What's happening is that these messages don't appear, but the message from the system is appearing after a long while - stating that certain fields are mandatory. (based on my table design).
What am i doing wrong?
thanks.