Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Find records outside a date Post Reply Post New Topic
Author Message
OneShoe
Newbie
Newbie


Joined: 12 Jan 2012
Location: United States
Online Status: Offline
Posts: 5
Quote OneShoe Replybullet Topic: Find records outside a date
     Posted: 12 Jan 2012 at 6:38am
I need help in creating a selection record formula in Crystal Reports 2008.

Find {OE_Job.Sold_Date} records with dates that are outside the {AR_Customer_Recurring.Cycle_Start_Date} date by 6 months either way.

Thanks in advance!
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 12 Jan 2012 at 6:58am
maybe this?
NOT({OE_Job.Sold_Date} in dateadd('m',-6,{AR_Customer_Recurring.Cycle_Start_Date}) to dateadd('m',6,{AR_Customer_Recurring.Cycle_Start_Date}))
IP IP Logged
OneShoe
Newbie
Newbie


Joined: 12 Jan 2012
Location: United States
Online Status: Offline
Posts: 5
Quote OneShoe Replybullet Posted: 12 Jan 2012 at 8:01am
Smile

That worked.  Thank you!
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