How to suppress zeros in printing

R

Rick

Is there a way to supress printing a field when it is zero? Because I sum
the fields they must at times be zero but I don't want a page full of zeros
interspersed with the other numbers.

Thanks in advance.
...rick
 
P

Phil Hunt

i maybe wrong, but there is a format property you can set to zzzzz.zz or
something like that.
 
J

John Vinson

Is there a way to supress printing a field when it is zero? Because I sum
the fields they must at times be zero but I don't want a page full of zeros
interspersed with the other numbers.

You can use the Format property of a report textbox to display zeros
as blank. The Format property for a number lets you specify four
format strings, separated by semicolons, and applies them to positive,
negative, zero and NULL values respectively. So a format of

#;-#;"";""

would display numbers as themselves (using a minus sign for negative
numbers); zero and NULL would display as an empty string.
 

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