how set active tab in control when form opened ?

D

David

I have a tabbed control, when I open the form that it is in, how do I control which tab is the active tab
Different tabs need to be active under different circumstances.
 
P

PC Datasheet

David said:
I have a tabbed control, when I open the form that it is in, how do I control which tab is the active tab?
Different tabs need to be active under different circumstances.
 
P

PC Datasheet

If you look at the properties of the pages in a tab control, you will see that
each page has a page property which is the page#. You can make for example page
3 the active page when you open the form by putting the following code in the
form's Open event:

Me!NameOfTabControl.Value = 3
 
Top