Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: record Selection Question Post Reply Post New Topic
Author Message
nitrotech
Groupie
Groupie


Joined: 30 Jan 2013
Location: United States
Online Status: Offline
Posts: 42
Quote nitrotech Replybullet Topic: record Selection Question
    Posted: 13 Dec 2013 at 4:05am
This is my current record selection:
{@XXXCompanyFilter} and
{EInfo.empStatus} = ["A","T","R","D"]

I want to now remove any one with a Termination date older then an year this is the field
Einfo.termdate

So It will keep only records that are a year or new from the current date.

Thanks
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 13 Dec 2013 at 4:57am
{@XXXCompanyFilter} and
{EInfo.empStatus} = ["A","T","R","D"]
and datediff('y',{Einfo.termadate}, today) < 1

I might have the order of the dates reversed...but this should be pretty close
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.