
Placing a Tab Control on another Tab Control
When you try to place a Tab Control on another Tab Control, Access will always allow the sub Tab Control to show through on all pages. Therefore, you must do one of two things:
Either check the main Tab Control's Value property in its OnChange event, and toggle the visibility of the sub Tab Control accordingly. You will also need to do this in the OnCurrent event for the Form:
Private Sub Form_Current()
Call tabMain_Change
End Sub
Private Sub tabMain_Change()
If Me!tabMain = 1 Then
Me!tabSub.Visible = True
Else
Me!tabSub.Visible = False
End If
End Sub
|
Alternatively, you can use a sub Form on the main Tab Control, and on this place a second Tab Control.
Top
HOME |
NEW |
TABLES |
QUERIES |
FORMS |
REPORTS |
GENERAL |
API |
DOWNLOADS |
TUTORIAL |
RESOURCES
E-MAIL
Copyright & Disclaimer
|