Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

refering to a page on a tab form

Status
Not open for further replies.

dixxy

Technical User
Joined
Mar 4, 2003
Messages
220
Location
CA
Hello,

I would like to know how to refer to a specifec page on a tab form?

Like this:

If me.form![what_ever_condition] then
me.form![tab_form_name]![page2].visible = false
End if

I can't seem to make this work, i cna't refer to the page on the tab form.

Can this be done?

Thanks,

Sylvain
 
How are ya dixxy . . .
Code:
[blue]   Me![purple][b][i]TabControlName[/i][/b][/purple].Pages("[purple][b][i]PageName[/i][/b][/purple]")[/blue]
Example switching to a page:
Code:
[blue]   Me![purple][b][i]TabControlName[/i][/b][/purple].Pages("[purple][b][i]PageName[/i][/b][/purple]").SetFocus[/blue]

Calvin.gif
See Ya! . . . . . .
 
thank you aceman, i knew i couldn't be that hard.....just gotta have the right syntax....

thanks a bunch!

Thanks,

Sylvain
 
dixxy . . .

Forgot to include page index. The first page of a Tab Control starts at zero and increments from there. So you could also use:
Code:
[blue]   Me![purple][b][i]TabControlName[/i][/b][/purple].Pages(2) [green]'3rd page![/green][/blue]

Calvin.gif
See Ya! . . . . . .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top