open form as certain page as default

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.
 
T

tina

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
 
X

xg

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
 

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

Top