Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formatting Data

Status
Not open for further replies.

hgg21

Programmer
Apr 25, 2002
60
SG
Hi,

need to trouble ppl again.

In this formula field I have this:
If {ParentProduct.ParentProduct} = "Commission" then {Trade.ProdCredit}

In some records, it is zero.
May I know how to display a "-" instead of 0.00??

Thanks
Jerry
 
Jerry

In the formula field put

If {ParentProduct.ParentProduct} = "Commission"
And {Trade.ProdCredit} <> &quot;0.00&quot;
then {Trade.ProdCredit}
Else
If {ParentProduct.ParentProduct} = &quot;Commission&quot;
And {Trade.ProdCredit} = &quot;0.00&quot;
then &quot;-&quot; (or whatever you need to appear here)

 
There is a much easier way to do this. Right click on the field, select Format Field, Number, Customize, Number. On the lower right hand side there is a selection for &quot;display zero as&quot;. Select the &quot;-&quot;.

Lisa
 
Hi,

thanks for your reply.

Cheers
Jerry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top