KeyPress event

  • Thread starter William Ortenberg
  • 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.
 
J

Jeremiah Ellison

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
 
W

William Ortenberg

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top