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

If then staement to enter text value 1

Status
Not open for further replies.

Buzzmeister14

Technical User
Dec 10, 2004
16
GB
I havea report that I'm building in CR8.5
from a DB on SQL2000

And would like to show a fixed text value if a condition is met have tried

if {field_name} = 0 then "NOT TAKEN"

however it does not display the nto taken when value is 0

Am new to CR any help appreciated ahev tried solutions similiar from this site no joy yet
 
Its probably null and not zero.

Try this formula:

If IsNull({YourField}) or {YourField}= 0 then "Not Taken"

Software Sales, Training, Implementation and Support for Exact Macola, eSynergy, and Crystal Reports
askdon@srhconsulting.com
 
That worked perfectly thanks Dgillz

overlooked the null value
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top