Building a simple popup form. One label control and 3 command button controls are the only controls on the form. One Form Event, OnKeyPress but it doesn't fire when Escape key pressed. (Also tested KeyUP and KeyDown events and they do not fire either)
Any ideas? (An OnOpen event fires okay but an OnClick DOES NOT fire)
Code:Option Compare Database Option Explicit Private Sub Form_KeyPress(KeyAscii As Integer) MsgBox "KeyPress Firing?" If KeyAscii = vbKeyEscape Then DoCmd.Close End Sub