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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

If, then, else

Status
Not open for further replies.

Kylarr

MIS
Jun 28, 2002
2
US
I am trying to print a field only if it is <>0 and if it's 0 i don't want anything to print but it keeps telling me I need a number here is an example... what do i need to change? It's been awhile since i've worked in Crystal at all let alone version 8.5.

If {Product.Stockweight}<>0
then {Product.Stockweight}
else &quot;&quot;

 
The then and the else must be the same data type, that is the problem.

Leave the zero in the report, and format the field to supress zeros, no formula required. Software Training and Support for Macola, Crystal Reports and Goldmine
714-348-0964
dgilsdorf@mchsi.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top