Solved

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

Posted on 2006-11-27
5
306 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
Comment Utility
0
 

Author Comment

by:shannonbirt
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

762 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

16 Experts available now in Live!

Get 1:1 Help Now