KeyPress event

  • Thread starter Thread starter William Ortenberg
  • Start date Start date
W

William Ortenberg

I'm trying to capture when a user presses a particular key (escape), so
I'm coding in the KeyPress event. Yet the code seems be bypassed
(breakpoint is never encountered). Should I be coding in a different
event? Is this a known issue? FYI, this is happening in both Access 97
and 2000.
 
I'm trying to capture when a user presses a particular key (escape), so
I'm coding in the KeyPress event. Yet the code seems be bypassed
(breakpoint is never encountered). Should I be coding in a different
event? Is this a known issue? FYI, this is happening in both Access 97
and 2000.

If you are trying to do this in the form KeyPress event, you need to turn on the Key Preview option found just under the
KeyPress event in the properties window.

Jeremiah Ellison
Ellison Enterprises - Your One Stop IT Experts
 
That fixed it. Thanks!

Jeremiah said:
If you are trying to do this in the form KeyPress event, you need to turn on the Key Preview option found just under the
KeyPress event in the properties window.

Jeremiah Ellison
Ellison Enterprises - Your One Stop IT Experts
 
Back
Top