Suppresssing Fields in Reports if zero

A

ajs

How can I suppress i.e. not display / print certain text or controls in a
report if the control is zero.
 
J

Jeff Boyce

If, by "zero", you mean the numeric value of the field in the query/table
underlying the report is "0", then you could add code to the OnFormat event
of the appropriate section.

That code would set the control's .Visible property to False when the value
in the control was 0.

If you mean "null", you could use the controls' CanGrow/CanShrink properties
to "close up" the space taken by the empty control. The first way does NOT
close up.

Good luck

Jeff Boyce
<Access MVP>
 

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

Similar Threads


Top