T TimjHebert Registered User. Local time Today, 15:20 Joined Dec 12, 2004 Messages 40 Jan 13, 2005 #1 How can i use a check box to show or hide a field on a form? Thanks, Tim
allan57 Allan Local time Today, 21:20 Joined Nov 29, 2004 Messages 336 Jan 13, 2005 #2 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
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
V vangogh228 Registered User. Local time Today, 16:20 Joined Apr 19, 2002 Messages 302 Jan 14, 2005 #3 I tried this out and found you can also use this technique to make subforms visible/invisible. Very cool.
I tried this out and found you can also use this technique to make subforms visible/invisible. Very cool.