Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / July 2007

Tip: Looking for answers? Try searching our database.

Set Function Keys

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
katz - 09 Jul 2007 18:59 GMT
Hello All!

I'm trying to set the function keys with me.KeyPrewiew and on KeyDown.
I realized that it doesn't work all the time, because of the default
settings. for example F1 key will  display Help many times, even I set it to
something else.
Is there a way to set the vbKeyF1 or the rest of the keys, and disable the
default setting?

Thanks in advance
Abe
Allen Browne - 10 Jul 2007 03:01 GMT
The KeyDown event of the *form* should work (with KeyPreview on.)

To suppress the normal use of the key, destroy the keystroke with:
   KeyCode = 0

If you wanted something application-wide (not just for one form), you could
use an AutoKeys macro.

Signature

Allen Browne - Microsoft MVP.  Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

> I'm trying to set the function keys with me.KeyPrewiew and on KeyDown.
> I realized that it doesn't work all the time, because of the default
[quoted text clipped - 5 lines]
> Thanks in advance
> Abe
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.