Hide a control based on another control value

skelley

Registered User.
Local time
Today, 20:26
Joined
Jul 11, 2000
Messages
69
How can I hide a control based on the value of another control, like a check-box.

I have a field on a form that I only want the user to see if a check-box is checked.
Or maybe another control's value other than a check-box.
 
Here is generic code that goes in the After Update event of the Check Box:

If Me![CheckboxName] = -1 then
Me![FieldToHide].Visible = False
Else
Me![FieldToHide].Visible = True
End if

If you move from record to record you may want to put similar code in the On Current event to be sure you 'hidden' field is shown when you want it to be shown.

HTH,
Jack
 

Users who are viewing this thread

Back
Top Bottom