Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Check for a null Boolean? Post Reply Post New Topic
Author Message
huddy33
Groupie
Groupie


Joined: 23 Apr 2009
Location: United States
Online Status: Offline
Posts: 54
Quote huddy33 Replybullet Topic: Check for a null Boolean?
     Posted: 20 Feb 2013 at 6:01am
I have a Boolean that I need to check for nulls or false values. If I try to look for a null, it gives me an error. What formula can I use to check for a null Boolean?
IP IP Logged
bwsanders
Senior Member
Senior Member


Joined: 05 Sep 2012
Location: United States
Online Status: Offline
Posts: 177
Quote bwsanders Replybullet Posted: 20 Feb 2013 at 7:44am
If IsNull({field}) Then"output"
IP IP Logged
huddy33
Groupie
Groupie


Joined: 23 Apr 2009
Location: United States
Online Status: Offline
Posts: 54
Quote huddy33 Replybullet Posted: 21 Feb 2013 at 2:58am
Bwsander, I had tried that, but I think the problem occurred when I tried to make the false value appear as text instead of just a boolean answer. This is what I ended up with that worked.

If (IsNull({table.field}) OR RTRIM(CStr({table.field}))='')
then False
else {table.field}
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