Hi,
I have a few controls hidden until a check box is selected.
works fine, obviously the controls are hidden when form opens until the check box is selected. my problem is now that when i open the form again, and the check box was selected on a previous session, the controls are still hidden but should now be visible because of the checkbox selected already. below is my code, how do I over come this to display when form opens to display hidden controls.
Private Sub EndCountry_Click()
If Me.EndCountry = False Then
Me.EndCountry1.Visible = True
Me.Enter.Visible = True
Me.Red.Visible = True
Refresh
Else
Me.EndCountry1.Visible = False
Me.Enter.Visible = False
Me.Red.Visible = False
Refresh
End If
End Sub
I have a few controls hidden until a check box is selected.
works fine, obviously the controls are hidden when form opens until the check box is selected. my problem is now that when i open the form again, and the check box was selected on a previous session, the controls are still hidden but should now be visible because of the checkbox selected already. below is my code, how do I over come this to display when form opens to display hidden controls.
Private Sub EndCountry_Click()
If Me.EndCountry = False Then
Me.EndCountry1.Visible = True
Me.Enter.Visible = True
Me.Red.Visible = True
Refresh
Else
Me.EndCountry1.Visible = False
Me.Enter.Visible = False
Me.Red.Visible = False
Refresh
End If
End Sub