Results 1 to 11 of 11
  1. #1
    Bronze Lounger
    Join Date
    Jan 2001
    Location
    Alzano Lombardo, Italy
    Posts
    1,483
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Using the Enter Key to Move Around in a Form (2003)

    If, on the startup form of the attached mdb, you click the AGENDA button and then keep on pressing the ENTER key, the cursor only moves to the OssCom textbox but doesn't go to the next text box in the tab order while it does if I use the Tab key. Is there a way to make the cursor move through the various text boxes on the form by using the ENTER key too?

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Using the Enter Key to Move Around in a Form (2003)

    The "Enter Key Behavior" property of the OssCom text box has been set to New Line in Field, while that of (for example) Giorno is set to Default. The New Line in Field setting enables you to insert a line break in the field by pressing the Enter key.

    If you set the "Enter Key Behavior" property of OssCom to Default too, you can move to the next control by pressing Enter, but you'll have to use Ctrl+Enter to insert a line break within the field.

    It's up to you to decide which behavior you prefer.

  3. #3
    Bronze Lounger
    Join Date
    Jan 2001
    Location
    Alzano Lombardo, Italy
    Posts
    1,483
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Using the Enter Key to Move Around in a Form (2003)

    Thank you Hans <img src=/S/smile.gif border=0 alt=smile width=15 height=15>

  4. #4
    2 Star Lounger
    Join Date
    Jul 2003
    Posts
    124
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Using the Enter Key to Move Around in a Form (2003)

    What if the field is a combo box; I want it to move to the next field when I depress the enter key; better stated how do you make the tab key and enter key function the same?

  5. #5
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Using the Enter Key to Move Around in a Form (2003)

    Isn't that the default action in a combo box?

  6. #6
    2 Star Lounger
    Join Date
    Jul 2003
    Posts
    124
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Using the Enter Key to Move Around in a Form (2003)

    Nope; I just looked again; I didn't see it.

  7. #7
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Using the Enter Key to Move Around in a Form (2003)

    Can others verify this? For me (Access 2002 SP-3), pressing Enter in a combo box moves the focus to the next control in the tab order.

  8. #8
    5 Star Lounger
    Join Date
    Nov 2004
    Location
    Wilmington, North Carolina, USA
    Posts
    1,196
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Using the Enter Key to Move Around in a Form (2003)

    <img src=/S/yep.gif border=0 alt=yep width=15 height=15> Sure does. As a matter of fact, try it with the calendar control on the startup form of the database attached in Grovelli's first post...
    ____________________________
    Jeremy
    "If you spend more on coffee than on IT security, then you will be hacked. What&#39;s more, you deserve to be hacked." -Richard Clarke

  9. #9
    Platinum Lounger
    Join Date
    Feb 2002
    Location
    A Magic Forest in Deepest, Darkest Kent
    Posts
    5,681
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Using the Enter Key to Move Around in a Form (

    Hi Hans

    Yes that is confirmed. I have created a combo with a look up and it moves to the next field in the tab order when I selected an item and hit enter. Also works with the tab key.
    Jerry

  10. #10
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Using the Enter Key to Move Around in a Form (2003)

    Thanks to Jeremy and Jezza for testing.

    Apparently, pressing Enter moves to the next control for others. What happens if you press Enter in the combo box? And what happens if you press Tab?

  11. #11
    2 Star Lounger
    Join Date
    Jul 2003
    Posts
    124
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Using the Enter Key to Move Around in a Form (2003)

    I will look at the Event Procedure in the After Update Control; to see why it 's not moving to next tab item.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •