My main form has 4 tabs. I would like to either hide or make visible tab4 based upon the value of a control located in a subform on tab3. I have attempted to use the following code in the main form "on current" event but it does not yield any results.
tab3 subform = Master_Key
tab3 subform control = chkDR
tab3 name = tbProdCarl
tab4 name = tbDRPhilly
main form = CLIENTS
Private Sub Form_Current()
If Me.Parent.Master_Key.chkDR.Value = True Then
Sheets("tbDRPhilly").Visible = True
Else
Sheets("tbDRPhilly").Visible = False
End If
End Sub
tab3 subform = Master_Key
tab3 subform control = chkDR
tab3 name = tbProdCarl
tab4 name = tbDRPhilly
main form = CLIENTS
Private Sub Form_Current()
If Me.Parent.Master_Key.chkDR.Value = True Then
Sheets("tbDRPhilly").Visible = True
Else
Sheets("tbDRPhilly").Visible = False
End If
End Sub