Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: isnull help needed Post Reply Post New Topic
Author Message
Nike
Newbie
Newbie
Avatar

Joined: 19 Sep 2007
Location: United States
Online Status: Offline
Posts: 2
Quote Nike Replybullet Topic: isnull help needed
    Posted: 19 Sep 2007 at 4:53pm
I have 3 fields. In order of priority they are RetirementDate, BuyoutDate, and LeaseEndDate.  For every record the possibility exists that RetirementDate and BuyoutDate are null.  I have been unable to figure out the proper syntax for an if then formula that says
 
if RetirementDate & BuyoutDate are null then LeaseEndDate else
if RetirementDate is null then BuyoutDate else
RetirementDate
 
All help greatly appreciated
 
Nike
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 19 Sep 2007 at 5:45pm
You have to nest the If statements, something like this:
If IsNull({table.RetirementDate}) then
  if IsNull({table.BuyoutDate}) then
    {table.LeaseEndDate}
  else
    {table.BuyoutDate}
else
  {table.RetirementDate}
-Dell


Edited by hilfy - 19 Sep 2007 at 5:45pm
IP IP Logged
Nike
Newbie
Newbie
Avatar

Joined: 19 Sep 2007
Location: United States
Online Status: Offline
Posts: 2
Quote Nike Replybullet Posted: 19 Sep 2007 at 9:14pm

Terrific!  I'll try it.  Thanks for your help!

Nike
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.