… the field ‘COURSE NUMBER.COURSE_CODE’ cannot contain a Null value because the Required property for this field is set to True. Enter a value in this field.
I don't want he end user to have to enter bogus info. Here's my code on my cancel button:
Private Sub CANCEL_CHANGES_IN_CREATE_MODIFY_PROGRAM_AND_CODES_Click()
If Me.Dirty Then
Me.Undo
Cancel = True
Refresh
End If
End Sub
********************************************
On "lost focus"