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

concatenate with null values

Status
Not open for further replies.

Willie78

Technical User
Jun 4, 2004
67
0
0
GB
Hi everybody

I have 3 simple if statement that say
if a field = 1 then concatenate a few fields.

This is displayed in the details section. The purpose of this is to display different address in different columns.

My problem is that ifa field that is in the concatenate
formula isnull then the formula will display nothing.

I have got around this by declaring each address field like so

stringVar busname :=if not isnull({Sample.BusinessName}) then {Sample_Data_txt.Person_BusinessName}&chr(13) else "";

from these result i have then done

busname&add1

etc

This works but seems long winded. Is there a better way i could do this?

Cheers

Wills
 
hi
i think you shoul place is null first
stringVar busname :=if isnull({Sample.BusinessName}) then
"" else
{Sample_Data_txt.Person_BusinessName}&chr(13);



fsreport
 
That's what I'd do too. Check your fields first with the ISNULL function
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top