Tech Support Guy banner
  • Please post in our Community Feedback thread for help with the new forum software! If you are having trouble logging in, please Contact Us for assistance.
Status
Not open for further replies.
1 - 3 of 3 Posts

·
Registered
Joined
·
9 Posts
Discussion Starter · #1 ·
Hi there, when I use the following code to show/hide tabs before and after update it works - but only when it's the main form.

Private Sub Job_BeforeUpdate(Cancel As Integer)

If Me.Job = "2" Then
Me.Parent.Page21.Visible = True

Else
Me.Parent.Page21.Visible = False
End If

Private Sub Job_AfterUpdate()

If Me.Job = "2" Then
Me.Parent.Page21.Visible = True

Else
Me.Parent.Page21.Visible = False
End If

I want this to work on the sub-form of the main form instead of the main form. So essentially I would need the parent.parent hierarchy, instead of parent. How can I implement this? Thank you!
 
1 - 3 of 3 Posts
Status
Not open for further replies.
Top