toggle button controls visibility

jguscs

Registered User.
Local time
Today, 00:40
Joined
Jun 23, 2003
Messages
148
I want to be able to use a toggle button to make certain other controls and fields visible when the toggle button's state is "down" and invisible with the toggle button's state is "up."
Is this possible?
I'm assuming I would have to add the code checking to the Form->Click sub-procedure so that, anytime something is clicked on the form, the code checks to see whether it was the toggle button.
Something like
If Me.TglButton.State = Down Then
Text01.Visible = True
Else
Text01.Visible = False
End If
 
got it:

Private Sub TogButton_Click()
If TogButton = 0 Then
Me.Txt01.Visible = False
Else
Me.Txt01.Visible = True
End If
End Sub
 

Users who are viewing this thread

Back
Top Bottom