open form as certain page as default

  • Thread starter Thread starter xg
  • Start date Start date
X

xg

I have a form called MainMenu with 5 pages (tabs). They are:

Report
Setting
Exception
Export
About

I also have a button on this form to open another form called Help which has
same number of pages (tabs) with same name.

I want to open Help form with specific page as default based on the page in
MainMenu form.

For example, if I'm looking at Setting page of MainMenu and click Help
button, I want Help form open with setting page as default.

How to code that?

Thanks.
 
make sure that the PageIndex property of each page matches, in the two tab
controls. for example, if the Report tabpage in MainMenu has an index value
of zero (0), then make sure the index value of the Report tabpage in the
Help form is also zero (0). then, assuming that the MainMenu form is always
open when the Help form is opened, just add code to the Help form's Load
event, as

Me!TabControlName = Forms!MainMenu!TabControlName

hth
 
Thanks.

tina said:
make sure that the PageIndex property of each page matches, in the two tab
controls. for example, if the Report tabpage in MainMenu has an index
value
of zero (0), then make sure the index value of the Report tabpage in the
Help form is also zero (0). then, assuming that the MainMenu form is
always
open when the Help form is opened, just add code to the Help form's Load
event, as

Me!TabControlName = Forms!MainMenu!TabControlName

hth
 
Back
Top