Visible Property

A

amylapinsky

I am trying to set the visibility of a text box in an Access report based on
the value of another text box. (i.e. I would like text box A to be hidden if
text box B is blank). Any help is appreciated. Thank you!
 
D

Dirk Goldgar

amylapinsky said:
I am trying to set the visibility of a text box in an Access report
based on the value of another text box. (i.e. I would like text box A
to be hidden if text box B is blank). Any help is appreciated. Thank
you!

In the Format event of the appropriate section of the report, you would
code an event procedure that wold include code like this:

Me!TextBoxA.Visible = (Len(Me!TextboxB & vbNullString) > 0)
 

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