Access Tab Control - Making a specific tab "active"

I have an access tab control that uses several tabs.  Based on variables in the system I am able to hide / unhide tabs in the control.  Based on the same variables, I would like to make a particular tab the "active" or default tab the form opens up to without hiding the other tabs.  I'm looking for something like Form_frmname.tabcontrol.tabpage.ACTIVE = True.  Of course this doesn't exist but what can I use to get the same result?
marku24Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
mbizupConnect With a Mentor Commented:
Use the SetFocus method...

me.YourTabCtl.Pages("PageName").SetFocus
0
 
mbizupCommented:
As an addendum to the above, you could place that line of code in the open or current event of your form.
0
 
marku24Author Commented:
So simple, Thanks
0
All Courses

From novice to tech pro — start learning today.