Solved

How to poll the keyboard in Access 2003 vba without using events

Posted on 2006-11-27
5
320 Views
Last Modified: 2007-02-03
I have a need to poll the keyboard for the Shift key been pressed in a subroutine.

However i do not wish to do this through the normal events eg keypress, keydown etc.

Is there any function i can call that will return the result of whats currently been pressed on the keyboard ?

Thanks guys.

0
Comment
Question by:shannonbirt
  • 2
5 Comments
 
LVL 34

Expert Comment

by:jefftwilley
ID: 18023384
0
 

Author Comment

by:shannonbirt
ID: 18029847
That is still using the keypress event, what im really after is how to read the keyboard in a function.
0
 
LVL 34

Accepted Solution

by:
jefftwilley earned 250 total points
ID: 18029925
Well....the only way to monitor is through key events...however there's many flavors

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/hooks/abouthooks.asp

good luck
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now