Click Tab Page To Open A Form

  • Thread starter Rich via AccessMonster.com
  • Start date
R

Rich via AccessMonster.com

I have a set of tab pages on my main form. I need to click on a tab page and
have a form open up. How do I code the tab page on click to open another
form?

THanks,
Rich
 
R

Rick Brandt

Rich said:
I have a set of tab pages on my main form. I need to click on a tab
page and have a form open up. How do I code the tab page on click to
open another form?

THanks,
Rich

Use the Change event of the entire TabControl and then test for the page
that was selected.

If Me.TabControlName.Value = 0 Then
'the first page was selected (1 = second page, etc.)
....
 
Top