Link to home
Start Free TrialLog in
Avatar of itmtsn
itmtsn

asked on

Access VBA code: Pressing Esc to run code and exit the form

Hi,

I have a form which records via a barcode scanner products purchased for an honesty bar. In the old system after scanning the items wanted you hit the Escape key which recorded the purchases against your account and logged you out.

Do I use the "On Key Press" Event within the purchsing form and if so how do I tie the code to the pressing of the Esc key?

Thanks in adavnce.

Jon
ASKER CERTIFIED SOLUTION
Avatar of Jupiler78
Jupiler78
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of itmtsn
itmtsn

ASKER

Thanks very much, worked a treat!
Glad I could help.
thanks for the points & grade.

Jupiler78