Tab Control - Default Pafe

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top