×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Supress Zero values

Supress Zero values

Supress Zero values

(OP)
I have a formula field that sometimes gives 0.00 values. I am trying to supress this when it is at 0.00 or just replace it with nothing.

I have the formula as below

IF {@LineUnitAmount} = 0 Then " "
Else
{@LineUnitAmount}

But it says a string is required here. Nay ideas please.

Thanks

RE: Supress Zero values

Select your formula {@LineUnitAmount}->right click->format->suppress->x+2 formula area->enter:

currentfieldvalue=0

-LB

RE: Supress Zero values

(OP)
Hi

It says this function can only be used in field formatting formulas.

Thanks

RE: Supress Zero values

Then you are putting it in the wrong place. Please reread the above and try again.

-LB

RE: Supress Zero values

(OP)
Hi

If I select the field on the report , I right click->format->suppress->x+2 formula area->enter: etc...

If I select the formula under the field explorer and right mouse click there is not the option to >format->suppress->x+2 formula area->enter:

So which one should it be?

Thanks

RE: Supress Zero values

If you select format field, a screen will open with the suppress option. The formula area is a box on the right with x+2 on it. Click on it and put the formula there.

-LB

RE: Supress Zero values

(OP)
Yes I have tried that but still get an error. I have attached a screen shot of what is happening, thanks

RE: Supress Zero values

What is the content of {@LineUnitAmount}? If you have any formulas inside this one, please provide the content of those too.

-LB

RE: Supress Zero values

(OP)
Hi thanks for the help, it did have formulas inside this one which I managed to adjust to make it work correctly.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close