Results 1 to 5 of 5
  1. #1
    Darth21 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2013
    Location
    Los Angeles, CA
    Posts
    15

    Tab order in Form

    I created a trouble log form. For Example: when the user tabs it moves to the next box until it gets to the end of the form until the last box and when the user hits tab again, it goes to the new record, but the tab is starting from the second box instead of the first. How to i fix this issue.



    Example: Clerk is the first field, second field is ride location.... the last field is time available. when the user tabs at the end to a new form it starts at ride location instead of clerk first. I went to the tab order and Clerk is set as first field, but it skips that field and goes to ride location.

    Does anyone know how to fix this? If so, please let me know.

    Thanks, Brian

  2. #2
    amrut is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    India
    Posts
    616
    When in form's design view, right click in blank area and select Tab order. Select the relevant section on left side and drag the first box to the top.You can also change the Tab Index property of a control in Property Sheet>Tab Index.

  3. #3
    Darth21 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2013
    Location
    Los Angeles, CA
    Posts
    15
    I tried that and it did not work. For the first field is Clerks, the second field is Ride Location and the last field is No Longer 10:35. When the users tabs to the end of the form it goes to the next form, what i want it to do, but the starts in the second field, Ride Location and i want it to start on the first field Clerks. I went to the tab or and Clerks is first in the tab order, but its not started at Clerks, it starts at Ride Location. Any suggestions?

    Thanks, Brian

  4. #4
    amrut is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    India
    Posts
    616
    The tab index starts from 0 so the your first box should have tab index 0 to be the first control having focus when the form loads.
    Add command button to the form for testing purpose and add following code to it's OnClick event.
    Code:
    Dim ctl As Control
    For Each ctl In Me.Controls
    Debug.Print "Control name : " & ctl.Name & "  Tab Index : " & ctl.TabIndex
    Next ctl
    View the result in immediate window. Check the tab index of your first box. You have to set it to 0 to start in the first field.

  5. #5
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    When you move from one Record to another Record, in Access, the cursor remains in the Control it was in on the previous Record. To set Focus to a given Control, on entering a Record, use code like this:
    Code:
    Private Sub Form_Current()
     Me.FirstControlName.SetFocus
    End Sub

    replacing FirstControlName with the actual name of your Control.

    Linq ;0)>

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

Similar Threads

  1. Allow more than order in an ORDER form.
    By kiko in forum Access
    Replies: 37
    Last Post: 04-19-2013, 05:30 AM
  2. How to order columns in ascending order?
    By darkingthereturn in forum Access
    Replies: 5
    Last Post: 06-18-2012, 05:24 AM
  3. Goods Order Form
    By amraam840 in forum Forms
    Replies: 7
    Last Post: 12-08-2011, 04:42 PM
  4. Replies: 1
    Last Post: 11-07-2010, 11:04 AM
  5. Help With Purchase Order Form
    By SpeedyApocalypse in forum Forms
    Replies: 29
    Last Post: 04-09-2010, 07:06 PM

Tags for this Thread

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