Results 1 to 6 of 6
  1. #1
    kdbailey is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Aug 2012
    Posts
    228

    Change a "OnKeyPress" bind for the database to recognize at all times


    Similar to how Excel uses "Application.OnKey" I would like my F11 key to automatically open up a table. Does access allow for this?

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    perhaps create an Auto Key macro with a submacro of {Fn11}

  3. #3
    kdbailey is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Aug 2012
    Posts
    228
    Can you explain this a little further?

  4. #4
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Create a macro that will open the table or whatever task you want to accomplish. Create another macro and name it AutoKeys. Type the keyboard shortcut that you want to intercept in the macro name collumn. Use the pulldown in the command to select Run Macro. Name your macro that you previously created.

    I tried creating an F11 intercept and the system would not let me. Not sure why. I believe it is still possible. Here is an example of intercepting Ctrl+k to display a message box.

    .
    Click image for larger version. 

Name:	AutoKeys.JPG 
Views:	13 
Size:	35.7 KB 
ID:	14971

  5. #5
    kdbailey is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Aug 2012
    Posts
    228
    I am a bit confused as to how you have a "Macro Name" field in your macro design.

    I only have the Action/Arguments/Comments Fields.

  6. #6
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    When the Macro is open in design view you can select View>Macro Names from the menu bar (top of the screen).

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 30
    Last Post: 09-27-2013, 01:34 PM
  2. Replies: 2
    Last Post: 03-23-2012, 05:09 AM
  3. List Box Not Recognize OnKeyPress ENTER
    By Rawb in forum Programming
    Replies: 1
    Last Post: 02-14-2011, 08:04 AM
  4. How to change the column heading in a "split form"
    By robertrobert905 in forum Forms
    Replies: 1
    Last Post: 09-21-2010, 02:42 PM
  5. Replies: 1
    Last Post: 10-19-2009, 02:37 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums