Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combination of keys to do a process

Status
Not open for further replies.

easycode

Programmer
Jan 28, 2005
195
US
Hello All,
I need to do a process when a combination of keys are hit, for example ctrl+alt+q ot crtl+alt+s. It could be any combination of keys. How can i create a combination of keys in access.

Thanks in advance
 
Be careful with sendkeys; You're never 100% sure where you're sending them!
 
To trap for the mentioned keys
1 - set the forms keypreview property to yes
2 - in the keydown event of the form, try

[tt]if keycode = vbkeyq and _
(shift and acaltmask) > 0 and _
(shift and acctrlmask) > 0 then
msgbox "alt+ctrl+q is pressed ..."
end if[/tt]

If you lookup the KeyDown event in the help files, there are more explanations, and a sample.

Roy-Vidar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top