Hiding Controls

M

Michael

I have a simple Data Access Page that runs from a simple query. I need to
find a way to hide a few controls (Text Boxes).
The control that will decide the faith of the textboxes is a Checkbox, the
field in the source table for this checkbox is a Yes/No field, I want the
text boxes to be hidden when the Check box is not checked as well as the
check box otherwise everything should be visible.
 
R

Ryan

In the forms "On Load" event you would add this code.
If ([Me!CheckboxName] = False, Me!CheckboxName.visible = False,
Me!Checkbox.visible = True)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top