Results 1 to 4 of 4
  1. #1
    JustAnElf is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Oct 2013
    Posts
    16

    Jumping to a specific field in a form

    Greetings one and all,



    Is it possible to add a shortcut key to a form so it jumps to a specific field? I've set the tab order so I can jump to all the fields in a logical manner. However there are times I only want to jump to one field and update it. Using the tab key or the mouse is a very slow process if you have several hundred records to update.

    Thanks.

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows XP Access 2003
    Join Date
    Aug 2013
    Posts
    7,862
    You can place some code in a click event. Maybe a control button or if you are tabbing to a control that you want to then skip several others, you could use that control's dblclick event, ie you arrive at a control and update the info - now you can dblclick it because you would typicaly skip the next 10 controls.

    Me.specific_field.SetFocus

  3. #3
    JustAnElf is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Oct 2013
    Posts
    16
    Hi ItsMe,

    You have a good suggestion but I'm trying to avoid the mouse click. Ideally I want to press a key combination such as CTRL+SHIFT+M and jump directly to that field. Keeping your hands on the keyboard is many times faster than stopping what you are doing and reaching for the mouse.

  4. #4
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows XP Access 2003
    Join Date
    Aug 2013
    Posts
    7,862
    After I posted, I considered the feasibility. The only way I can imagine is to have some VBA fire in an event. Maybe you could use something like SendKeys or Keybord Shortcuts. I don't use them myself so I can not offer much help there.

    I just see a need to have some custom code that goes to a specific field after analyzing where the current focus is.

    Maybe a Case Select and .SetFocus

    The trick would be to get a certain combination of keystrokes to fire the event.

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

Similar Threads

  1. Replies: 5
    Last Post: 05-25-2012, 05:57 PM
  2. Open an external folder specific by a form field
    By AccessNoob16 in forum Forms
    Replies: 11
    Last Post: 04-09-2012, 01:30 PM
  3. Stop Form Jumping on Startup
    By mapline in forum Programming
    Replies: 9
    Last Post: 05-21-2011, 08:31 PM
  4. Replies: 7
    Last Post: 11-29-2009, 01:44 PM
  5. Replies: 1
    Last Post: 11-10-2009, 03:20 PM

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