Using check box

TimjHebert

Registered User.
Local time
Today, 15:20
Joined
Dec 12, 2004
Messages
40
How can i use a check box to show or hide a field on a form?

Thanks,
Tim
 
Simple Example:

1) Create a CheckBox called 'chkTestCheckBox'
2) Create a text control called 'txtTestTextBox'
3) Place the following code in the 'After Update Event' of the CheckBox Control

If chkTestCheckBox = True Then

txtTestTextBox.Visible = False

Else

txtTestTextBox.Visible = True

End If
 
I tried this out and found you can also use this technique to make subforms visible/invisible. Very cool.
 

Users who are viewing this thread

Back
Top Bottom