I have a form that I want to close when the users presses the 'esc' key. It work fine but none of the information that I have entered on the form is saved. When I reopen the form I don not see any of my data. Here is my code:
Private Sub Form_KeyPress(KeyAscii As Integer)
If KeyAscii = 27 Then
DoCmd.Close acForm, "frminformation"
End If
End Sub
Any help would be much appreciated. Thanks.
Private Sub Form_KeyPress(KeyAscii As Integer)
If KeyAscii = 27 Then
DoCmd.Close acForm, "frminformation"
End If
End Sub
Any help would be much appreciated. Thanks.