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
Solved

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

Posted on 2006-11-27
5
335 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

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…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
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 the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

790 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