Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Technical Questions
Message Icon Topic: Help with Selection Criteria Post Reply Post New Topic
Author Message
meg76148
Newbie
Newbie


Joined: 28 Jul 2014
Location: United States
Online Status: Offline
Posts: 5
Quote meg76148 Replybullet Topic: Help with Selection Criteria
    Posted: 16 Sep 2014 at 5:25am
I am new to Crystal Rpts...I am trying to write a selection criteria formula. Here is what I am trying to say..

if the temp.date is empty (null) but the perm.date had a date (not null)

then pull all records where that perm.date is < the projected.date and a perm.date is in a date range for the projected.date (projected.date{?start date} to projected.date {?end date})

also pull

all records with a projected.date that is between the projected.date {?start date} and projected.date {?end date}

here is what I wrote:
(isnull({temp.date}) and not isnull({perm.date}) and
{perm.date} < {projected.date} and
{projected.date} in {?sdate} to {?edate}

this is only returning records with perm.dates

any suggestions?

IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 16 Sep 2014 at 7:53am
are all these values coming from the same table? if not how are you joining the tables? are there always matching records in all tables?
IP IP Logged
meg76148
Newbie
Newbie


Joined: 28 Jul 2014
Location: United States
Online Status: Offline
Posts: 5
Quote meg76148 Replybullet Posted: 16 Sep 2014 at 8:20am
Thank you for your reply.

There are two tables both have been pulled into crystal. the perm.date and the temp.date are from one table and the projected.date is from another table. so it really should have read...status.perm_date and status.temp_date then projectedstatus.projected_date.
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 16 Sep 2014 at 8:30am
how are you joining th tables?
is it a 1:1 ratio with these tables?
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.