Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Newbie Selection Question Post Reply Post New Topic
Author Message
uncle buck
Newbie
Newbie


Joined: 16 Dec 2009
Location: United States
Online Status: Offline
Posts: 1
Quote uncle buck Replybullet Topic: Newbie Selection Question
     Posted: 16 Dec 2009 at 8:36am
This is probably pretty easy but I need help with a selection formula. I want to first select customers by their contract date from one table and then include transactions from another table, based on a date range, if any. If there are no transactions just display customer info. The formula below will return the result I am looking for only if it finds data in the (trxhistoryhdr) table. Thanks


{Site.EndDate} in DateTime (2010, 01, 01, 00, 00, 00) to DateTime (2010, 01, 31, 00, 00, 00) and
{Site.ContractType} in ["KNBT", "LA1", "LA12", "LA2", "LA3", "LA4", "PM1", "PM12", "PM2", "PM3", "PM4"] and
{TrxHistoryHdr.TrxDate} in DateTime (2009, 01, 01, 00, 00, 00) to DateTime (2009, 12, 31, 00, 00, 00) and
{TrxHistoryHdr.PostedFromAppl} = "SB" and
{TrxHistoryHdr.CallType} > "0" and
{TrxHistoryHdr.TrxType} = 0
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 16 Dec 2009 at 9:44am
You likely need to write a SQL Command, a view or a Stored Pocedure to do this.
In SQL you could create 2 views filtering each table individually then outer join the views together in crystal.
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