Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Date Comparisons... Post Reply Post New Topic
Author Message
Shemp
Newbie
Newbie
Avatar

Joined: 20 Feb 2009
Location: United States
Online Status: Offline
Posts: 1
Quote Shemp Replybullet Topic: Date Comparisons...
    Posted: 20 Feb 2009 at 1:39pm

I am attempting to supress in formula editor those date that are behind schedule, below is a sample of the code I am using that is not working.  I besically want return of records if the date field in question is older than the current date.  Thanks in advance for any responese,

 
jmoClosed = 0 and jmoProductionComplete = 0 and ({JobOperations.jmoDueDate} > CurrentDate)
IP IP Logged
despec99
Newbie
Newbie


Joined: 10 Feb 2009
Online Status: Offline
Posts: 22
Quote despec99 Replybullet Posted: 21 Feb 2009 at 8:12pm
Originally posted by Shemp

I am attempting to supress in formula editor those date that are behind schedule, below is a sample of the code I am using that is not working.  I besically want return of records if the date field in question is older than the current date.  Thanks in advance for any responese,

 
jmoClosed = 0 and jmoProductionComplete = 0 and ({JobOperations.jmoDueDate} > CurrentDate)

Well, I'm sure you realize that when using the AND in a statement, all conditions must be true for the formula to suppress the record.  Are you certain that the jmoClosed and JmoProductionComplete are going to be zero when the due date is greater than the current date?  And are jmoClosed and jmoProductionComplete fields or formulas?

David
IP IP Logged
rahulwalawalkar
Senior Member
Senior Member
Avatar

Joined: 08 Jun 2007
Location: United Kingdom
Online Status: Offline
Posts: 731
Quote rahulwalawalkar Replybullet Posted: 22 Feb 2009 at 2:16am
Hi
 
jmoClosed = 0 and jmoProductionComplete = 0 and ({JobOperations.jmoDueDate} > CurrentDate)
 
Change to
 
jmoClosed = 0 and jmoProductionComplete = 0 and ({JobOperations.jmoDueDate} < CurrentDate)
 
as you are checking for date field in question is older than the currentdate
 
Cheers
Rahul
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.016 seconds.