Results 1 to 4 of 4
  1. #1
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    St. Marys, Ontario, Canada
    Posts
    270
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Tab control on a form

    I have created a form using the tab control feature. I have found that I can arrange the tab order on each tab, but I haven't figured out how to tab to the next tab when I tab from the last field on the first tab. Boy, a lot of the word "tab" in that last sentence. I hope you understand what I mean.
    As Fred Flinstone would say, "Tabadabado!"

  2. #2
    2 Star Lounger
    Join Date
    Dec 2000
    Posts
    120
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Tab control on a form

    Control+Tab moved moves the focus to the next tab in the tab order. Control+Shift+Tab moves to the previous tab

  3. #3
    3 Star Lounger
    Join Date
    Dec 2000
    Location
    Columbus, Ohio, USA
    Posts
    286
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Tab control on a form

    Put this code in the OnExit event of the last control on first tab. Will automatically tab to first control on 2d tab. Tab pages are numbered 0,1,2,....

    Private Sub B_150_Exit(Cancel As Integer)
    Dim tbc As Control
    Dim pge As Page
    Dim ctl As Control

    Set tbc = Me!TabCtl0
    tbc.Value = 1
    Set pge = tbc.Pages(tbc.Value)
    End Sub

  4. #4
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    St. Marys, Ontario, Canada
    Posts
    270
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Tab control on a form

    Many thanks to both of you.

Posting Permissions

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