Tab invisible

gary_getter1

Registered User.
Local time
Tomorrow, 03:42
Joined
Jan 20, 2006
Messages
17
I want to invisible some subform in tab, and there have some check box in the main form to controls which form is visible.
----------------------------------------------------------------------
Private Sub StudentInfo_Click()

If Not IsNull(Me.StudentInfo) Then
Me.tabStudentInfo.visible = "Yes"
Else Me.tabStudentInfo.visible = "No"
End If

End Sub
----------------------------------------------------------------------
Did my code have anything wrong?

Thank
 
to make a subform invisible use:
YourSubName.visible = false

to make a tab invisible use:

YourTabNameHere.Style = 2
 
Thank for your help!!
 
If Not IsNull(Me.StudentInfo) Then
Me.tabStudentInfo.visible = True
Else Me.tabStudentInfo.visible = False
End If
 

Users who are viewing this thread

Back
Top Bottom