Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Help with a Sub_Report Post Reply Post New Topic
Author Message
brent21090
Newbie
Newbie


Joined: 20 Apr 2009
Online Status: Offline
Posts: 31
Quote brent21090 Replybullet Topic: Help with a Sub_Report
    Posted: 17 Dec 2012 at 5:01am
Hi All
 
I am trying to find a datedifference between date1 and date2. They are both stored in the same column in the table. Sometimes date2 does not exist. There is a where clause that distinguishes date1 and date2.  My work around was to create a subreport for date2 . User is to enter a date range as a paramenter.  This gets passed on to the subreport.
 
My question is- How do I pass the date in the subreport back to the main report and display it in the main report?
 

Any suggestions on how I can accomplish this.

Thank you
 
IP IP Logged
shanth
Groupie
Groupie


Joined: 06 Aug 2012
Location: United States
Online Status: Offline
Posts: 75
Quote shanth Replybullet Posted: 17 Dec 2012 at 9:17am
Did you tried shared variable? Something like below:

SubReport
WhilePrintingRecords;
Shared DATEVAR Date:= {field/?Param}

Main Report:
WhilePrintingRecords;
Shared DATEVAR Date;
Date
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.032 seconds.