The Cancel Button

StacyStacy

A "Californian" at heart!
Local time
Today, 02:33
Joined
Jan 29, 2003
Messages
159
How do I clear all transactions, even edit checks from all fields on a form when the "cancel" or "find" button is clicked?

Thanks,
 
It doesn't work. Here's the error message:

… 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"

If Me.Dirty Then
Me.Undo
Cancel = True
End If
 
Does Anyone Know?

This is my last try: Does anyone know how to resolve this issue?

Thanks,
 

Users who are viewing this thread

Back
Top Bottom