Change active tab in a tab control using VBcode.

CrArC

Registered User.
Local time
Today, 00:12
Joined
Oct 7, 2006
Messages
25
Hello there... AGAIN.
I want to change the active tab in a tab control in a form using VB. I've tried:

form_formname.tabcontrol.pages(2).setfocus
in this example I was trying to select the second tab of the two in the control.

I decided that I need tab controls to cut down on the number of forms I will need to accomodate all the mess I'm making! :D
Basically though, I need to be able to change the current tab by means of a command button, and ideally, the tabs themselves will be hidden (just revealing the contents of each tab) so the buttons must be used to navigate.

Any help appreciated! Thanks. :D
 
collections in Access are Zero based
form_formname.tabcontrol.pages(1).setfocus for second tab
 
Haha, that works a treat! Ok thanks :)
 

Users who are viewing this thread

Back
Top Bottom