Hi,
I have two radio buttons that's driven the form to show / hide certain fields. The main form also has 4 subforms, I want the subforms to hide/show fields based on the radio button on main form, how do I make it work? I am very new to coding. Thanks
Private Sub frameSelect_Dept_Click()
Select Case Me.Department.Value
Case 1
Me.language_child.Visible = True
Me.Occupation.Visible = False
Me.Cbomaritalstatus.Visible = False
Me.ChildLabel.Visible = True
Me.language_parent.Visible = True
Case 2
Me.Occupation.Visible = True
Me.Cbomaritalstatus.Visible = True
Me.ChildLabel.Visible = False
Me.language_parent.Visible = False
End Select
End Sub
I have two radio buttons that's driven the form to show / hide certain fields. The main form also has 4 subforms, I want the subforms to hide/show fields based on the radio button on main form, how do I make it work? I am very new to coding. Thanks
Private Sub frameSelect_Dept_Click()
Select Case Me.Department.Value
Case 1
Me.language_child.Visible = True
Me.Occupation.Visible = False
Me.Cbomaritalstatus.Visible = False
Me.ChildLabel.Visible = True
Me.language_parent.Visible = True
Case 2
Me.Occupation.Visible = True
Me.Cbomaritalstatus.Visible = True
Me.ChildLabel.Visible = False
Me.language_parent.Visible = False
End Select
End Sub