Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Technical Questions
Message Icon Topic: COALESCE or Crystal equivalent Post Reply Post New Topic
Author Message
Pinto
Newbie
Newbie
Avatar

Joined: 14 Sep 2007
Location: United Kingdom
Online Status: Offline
Posts: 9
Quote Pinto Replybullet Topic: COALESCE or Crystal equivalent
    Posted: 20 Jul 2009 at 6:30am
I have the following formula, but if any of the fields are null then nothing is displayed. I tried using Coalesce, but got a formula error. Can you use Coalesce in crystal or do I need to do it another way ?
 
{tblLEG_Civil.Civ_Title} + ' ' + {tblLEG_Civil.Civ_Firstnames}+' ' +{tblLEG_Civil.Civ_Surname}
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 20 Jul 2009 at 7:34am
There is probably a more elegant solution but this will work.
(if isnull({tblLEG_Civil.Civ_Title}) then '' else {tblLEG_Civil.Civ_Title} + ' ') +
(if isnull({tblLEG_Civil.Civ_Firstnames}) then '' else {tblLEG_Civil.Civ_Firstnames} + ' ') +
(if isnull({tblLEG_Civil.Civ_Surname}) then '' else {tblLEG_Civil.Civ_Surname})
IP IP Logged
Pinto
Newbie
Newbie
Avatar

Joined: 14 Sep 2007
Location: United Kingdom
Online Status: Offline
Posts: 9
Quote Pinto Replybullet Posted: 21 Jul 2009 at 1:12am
Thanks - that works fine Big%20smile
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.