Advertisement

10.25.2007 at 04:19AM PDT, ID: 22917161
[x]
Attachment Details

Detect key press in Access VBA

Asked by pauldonson in Access Coding/Macros, Microsoft Access Database, Access Forms

Tags: vba, key, access, detect

Hopefully an easy one this, believe it or not I cannot find anything that gives the solution!

I have a VBA sub that will continually check something at set times, so needs to run forever, all I need is a line that will detect if the "q" key is pressed on the keyboard and exit the sub:

Do

Loop Until False 'loop forever - needs to be until "q" is pressed on the keyboard

Can anyone help please?Start Free Trial
[+][-]10.25.2007 at 04:24AM PDT, ID: 20146559

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.25.2007 at 05:03AM PDT, ID: 20146747

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.25.2007 at 11:09AM PDT, ID: 20149815

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Access Coding/Macros, Microsoft Access Database, Access Forms
Tags: vba, key, access, detect
Sign Up Now!
Solution Provided By: DatabaseMX
Participating Experts: 3
Solution Grade: A
 
 
[+][-]10.26.2007 at 12:07AM PDT, ID: 20153721

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628