Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Greater than Less than in If statement Post Reply Post New Topic
Author Message
swatts
Groupie
Groupie
Avatar

Joined: 17 Mar 2010
Online Status: Offline
Posts: 83
Quote swatts Replybullet Topic: Greater than Less than in If statement
     Posted: 02 Oct 2012 at 7:13am
Is the following not valid?

if ({Authorization_Release_Info.Data_Entry_Date}) < date(10/01/2012) then
"This report was filed before October of 2012"

Else
"This report was filed on October 1, 2012 or later"


It keeps giving me the Else part.

I pulled one of the files that was from 8/22/12 and it shows up
This report was filed on October 1, 2012 or later
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 02 Oct 2012 at 7:22am
if ({Authorization_Release_Info.Data_Entry_Date}) < date(2012,10,1) then
"This report was filed before October of 2012"

Else
"This report was filed on October 1, 2012 or later"
IP IP Logged
swatts
Groupie
Groupie
Avatar

Joined: 17 Mar 2010
Online Status: Offline
Posts: 83
Quote swatts Replybullet Posted: 02 Oct 2012 at 7:25am
You are always right! Thank you so much!
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