Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Formula error due to link options Post Reply Post New Topic
Author Message
Rogier
Newbie
Newbie


Joined: 27 Oct 2009
Location: Netherlands
Online Status: Offline
Posts: 2
Quote Rogier Replybullet Topic: Formula error due to link options
     Posted: 28 Oct 2009 at 2:23am
See if someone can help me with this.
Thanks in advance.
 
Formula
IF {WRNMST.RNLDRF}<> " "
Then 'A'
ELSE 'B' 
 
Two linked tables, left outer join / Not enforced / Link type =
{WRNMST.RNLDRF} is in the second table.
 
Error, for items where there is no match in the second table, there is no formula result.
 
This has probably something to do with the link options ?
 
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 28 Oct 2009 at 7:24am
" "  is not the same as NULL.
Is the {WRNMST.RNLDRF} field coming from the table that has the lesser row count? If so you need to tell it what to do with NULL values
If isnull({WRNMST.RNLDRF}) or {WRNMST.RNLDRF}= ""
then 'B'
else 'A' 
IP IP Logged
Rogier
Newbie
Newbie


Joined: 27 Oct 2009
Location: Netherlands
Online Status: Offline
Posts: 2
Quote Rogier Replybullet Posted: 28 Oct 2009 at 7:40am
This solved my issue, didn't see it like this.
 
Great thanks,
IP IP Logged
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