More TAB Control Questions

D

Dave

Access 2003

So I am on one tab and when I click a button on that TAB I have a "msgbox"
as part of the "On Click" even.
Depending on their answers
Yes - will print a report
This part works

No - will return you to the Tab Control but on another tab
This I do not know how to do.

How do I programmable go from one TAB to another TAB?

Any help here will be appreciated.

Thanks in advance

Dave
 
D

Douglas J. Steele

Set focus to the specific Page. If you look at the tab control, you'll see
that each tab is actually referred to as a page. You can make the 3rd tab
the active one using:

Me!Page3.SetFocus
 
D

Dave

I had actually tried that but had the syntax incorrect
Me.Page3.SetFocus
instead of
Me!Page3.SetFocus

Thanks much

dave
 
Top