Can Shrink

G

Guest

We have a text box on a report that shows the result of a formula. If the formula result is zero, we don't want the text box to show when the report is printed, and we want the next line to move up (can shrink). Is there any way to do this

Thanks
Howard
 
M

Marshall Barton

Howard said:
We have a text box on a report that shows the result of a formula. If the formula result is zero, we don't want the text box to show when the report is printed, and we want the next line to move up (can shrink). Is there any way to do this?


Two things to try. One is to set the text box's expression
to:
=IIf(<formula> = 0, Null, <formula>)

The other is to use code in the text box section's Format
event:
Me.thetextbox.Visible = (Me.thetextbox <> 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