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

formula returning NULL

Status
Not open for further replies.

clydejones

Programmer
Jan 11, 2001
153
0
0
US
I wrote a formula to show addresses. When one or more fields that are used to make up the address formula contain null values for some records, the fromula returns null (empty). I would still like to show the fields of the address formula that do not contain null values. Any help would be appreciated.

Thanks,
Clyde
 
Are you on Crystal 7 or higher? Have you tried under File, Options, Reporting tab -- clicking Convert Null field value to default?
 
That works as long as you don't need to use the IsNull function anywhere in the report.

The alternative is more work but would be something like:

(if IsNull({city}) then "" else {city})+
", " +
(if IsNull({state}) then "" else {state})+
" " +
(if IsNull({zip}) then "" else {zip}) Ken Hamady
Crystal Reports Training and a
Quick Reference Guide to VB/Crystal
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top