G
GD
I'm new to code, but trying hard to understand the lingo. What's wrong with
my code below? I'm trying to get two sections of a form to be visible or
invisible, depending on whether their respective check boxes are checked. I
had it working fine with just one.
Private Sub Form_Current()
If Check195 = True Then
Combo206.Visible = True
Combo269.Visible = True
Text267.Visible = True
Label300.Visible = True
Else
Combo206.Visible = False
Combo269.Visible = False
Text267.Visible = False
Label300.Visible = False
If Check209 = True Then
Combo213.Visible = True
Text215.Visible = True
Text217.Visible = True
Label221.Visible = True
Combo219.Visible = True
Else
Combo213.Visible = False
Text215.Visible = False
Text217.Visible = False
Label221.Visible = False
Combo219.Visible = False
End If
End Sub
Thanks for your valuable time!!
my code below? I'm trying to get two sections of a form to be visible or
invisible, depending on whether their respective check boxes are checked. I
had it working fine with just one.
Private Sub Form_Current()
If Check195 = True Then
Combo206.Visible = True
Combo269.Visible = True
Text267.Visible = True
Label300.Visible = True
Else
Combo206.Visible = False
Combo269.Visible = False
Text267.Visible = False
Label300.Visible = False
If Check209 = True Then
Combo213.Visible = True
Text215.Visible = True
Text217.Visible = True
Label221.Visible = True
Combo219.Visible = True
Else
Combo213.Visible = False
Text215.Visible = False
Text217.Visible = False
Label221.Visible = False
Combo219.Visible = False
End If
End Sub
Thanks for your valuable time!!