Tab Control - Default Pafe

J

jeannette_rivera

I have a tab control with 3 pages on it. I open this forms from different
places with command buttons. Is it possible to set each command to open a
different page of the tab control.

Thanks for your help
 
R

Rick Brandt

jeannette_rivera said:
I have a tab control with 3 pages on it. I open this forms from
different places with command buttons. Is it possible to set each
command to open a different page of the tab control.

Thanks for your help

Pass the page index number you want in the OpenArgs argument of the OpenForm
method. Then in the Open event of the form...

Me.TabControlName.Value = Nz(Me.OpenArgs, 0)
 
Top