| DatabaseLessons.com |
'Serving the Microsoft® Access |
|
|
Function Key ShortcutsA default command button on an Access form works by being clicked with a mouse. I have worked with a number of clients over the years that do massive amounts of data entry using Access, and do not want to remove their hands from the keyboard. This tip shows how to allow keyboard Function Keys to emulate the click, thus leaving fingers on the keyboard. NOTE: All the VBA code segments on the Database Lessons site assume that you have DAO references active. If you are not sure what this means, and you are using Microsoft Access 2000 or higher, click here.
The above example allows the F5 function key to emulate the click of the cmdSomeButton command button. Make sure that you replace "cmdSomeButton" with the actual name of the command button. This technique can also be used in situations without the command button. Oh, by the way, if you want to know the proper "names" of other keys, besides function keys, go into the MS Access VBA help screen, and search for "Keycode Constants". Happy Coding (article continues after sponsor spot) |
|
|
© 2006, 2007, 2008 Richard W. Killey. All Rights Reserved. |