A
Adam
When I use this code in the before update event procedure
Private Sub Form_Before(Cancel As Integer)
Cancel = True
Me.Undo
MsgBox "Your changes were cancelled"
End Sub
it won't allow any date to be entered.
What I want to happen is when a form is closed the data not to be saved
unless I click an enter button to save the data. Once the data is saved the
form can be closed
Private Sub Form_Before(Cancel As Integer)
Cancel = True
Me.Undo
MsgBox "Your changes were cancelled"
End Sub
it won't allow any date to be entered.
What I want to happen is when a form is closed the data not to be saved
unless I click an enter button to save the data. Once the data is saved the
form can be closed