Using Command Button to Open Page Index

Mrkeith

Registered User.
Local time
Today, 15:35
Joined
Dec 22, 2010
Messages
60
Forum,
I'm having a problem trying to open an page index on my form page. Can anyone help with this problem? I would like to have the command button open the (SWD) tab on the same form. How can I do this? This (SWD) tab has a chart that i would like for the command button to open in print preview so i can print the chart out. Can this be done?

Thanks for your help in Advance.
 
Is this a regular tab control or the new navigation form in Access 2010?
 
Bob, I believe this is a regular tab in Access 2007. I guess I should be more clear. This is a form that has page tabs across the top. When you clilck insert page button, you create a new tab. I hope this is helpful.

Thanks Bob.
 
If you know the index of the page you can just set your main tab control to it in the click event of the button.

Me.MainTabControlNameHere = x

where x is the index number of the page. Or, if you may have those move around because of adding pages and such, you can use the page name

Me.MainTabControlNameHere.Pages("PageNameHere").SetFocus

And most of the time you can also use

Me.PageNameHere.SetFocus
 
bob,

I'm sorry but where is the main tab control located? How do you get to it?
 

Users who are viewing this thread

Back
Top Bottom