Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2003
    Posts
    300

    Unanswered: How to move from tab to tab?

    I have a single form that is using a TAB CONTROL for about 6 different tabs on that form. I want to create a control button that when clicked, will move the person to the next TAB or a TAB that I select..

    How can I do this?

  2. #2
    Join Date
    Jul 2003
    Location
    Amsterdam, Nederland
    Posts
    450

    Cool use the property PageIndex

    There is an property Page index

    You start at 0 and in your case will end at 5

    read it and then set it to +1 or if it is 5 to 0

  3. #3
    Join Date
    Nov 2003
    Posts
    300
    That is not what I meant.

    I want to create a "command button" on TAB #1, so when the user clicks on the button, it moves them to a TAB that I select for them to move them to another TAB on the form..

  4. #4
    Join Date
    Nov 2003
    Location
    LONDON
    Posts
    238
    Originally posted by databasemon
    That is not what I meant.

    I want to create a "command button" on TAB #1, so when the user clicks on the button, it moves them to a TAB that I select for them to move them to another TAB on the form..
    You can either use the SetFocus method for a control on the tab you want the user to be directed to. This will automatically switch the tab to that control - provided it is enabled and the focus can be switched to it.

    eg Me("MyControlOnTheTabIWantTheUserToGoTo").SetFocu s

    you could also use code such as:

    Me("tabTabControl").Pages(1).SetFocus

Posting Permissions

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