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

Crystal Reports IsNull function

Status
Not open for further replies.

GeoffRogers

Technical User
Oct 31, 2000
1
GB
I have a field in a crystal report called address3. When it doesnt contain data i want to be able to move the next fields up in the report as though the field wasnt there. Do i use the ISNull function? If so could a friend show me a piece of code I could adapt to do this.
Thanks

GeoffRogers
 
If the field is something you can put in its own details section, you can set the format for that section to "suppress if blank." That's the easiest way.
 
Or you could set up a formula field such as "Addr_Line" then use the following code:

if isnull({address3}) then {address4}
else {address3}

this would put the contents of address4 into Addr_Line if addess3 was null, otherwise it would put the contents of address3 into Addr_Line. Then just put Addr_Line on your report.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top