Solved

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

Posted on 2006-11-27
5
348 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

732 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