Hide label

M

Marshall Barton

Chris said:
How can I hide a label in a report if the value of the
data is null


Use a little VBA code in the Format event of the section
containing the text box.

Me.thetextbox.Visible = Not IsNull(Me.thetextbox)
 
D

Duane Hookom

Or convert the label to a text box and set its control source to:
="My Caption " + [MyField]
Make sure the text box is wide enough to only show what you want and set Can
Grow to No.
 

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