Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: MTD Subreport Post Reply Post New Topic
Author Message
jlevinson
Newbie
Newbie


Joined: 10 May 2010
Online Status: Offline
Posts: 1
Quote jlevinson Replybullet Topic: MTD Subreport
    Posted: 10 May 2010 at 3:46am
I am trying to display a subreport to show mtd numbers based on the main report date range.  For example, when running the main report, I choose 4/10/2010 - 4/20/2010... I would like to see 4/1/2010 -4/20/2010 in the subreport.  What is the best way to facilitate this?
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 10 May 2010 at 7:54am
Create a 2 formulas in the main report and use these formul fields as links to the sub-report.
DateEnd as
{?paramEndDate}
Assuming you want the first day of the month from your main param StartDate as
dateadd('d',-Datepart('d',{?paramStartDate})+1),{?paramStartDate})
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.