Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Private Sub KeyDownEscape(frmCalling As Form, intKeyCode As Integer, intShift As Integer)
- Select Case intKeyCode
- Case vbKeyEscape
- If frmCalling.Dirty Then
- frmCalling.Undo
- frmCalling.Undo
- frmCalling.Undo
- Else
- DoCmd.Close acForm, frmCalling.Name, acSaveNo
- End If
- End Select
- End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement