Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Crystal Reports Parameters Post Reply Post New Topic
Author Message
Noel
Newbie
Newbie


Joined: 17 Oct 2011
Online Status: Offline
Posts: 2
Quote Noel Replybullet Topic: Crystal Reports Parameters
     Posted: 21 Oct 2011 at 2:34am
Hi All
 
I have a report which contains a date parameter where the user selects the start of range date and end of range date. The data is displayed correctly - no problem
 
In the Report Header, I have placed a formula with the following code
WhilePrintingRecords;
DateVar date1;
DateVar date2;
date1:=Minimum ({@NumToDate});
date2:=Maximum ({@NumToDate});
"Report For Period: " + totext(date1) + " To " + totext(date2)
 
Now what happens is that when the user selects a date range, for example 10th October 2011 to  20th October 2011, but data exists from 12th October 2011 to 20th October 2011, so the report prints as :
"Report For Period 12th October 2011 to 20th October 2011.
 
What I need is that it should  print : Report For Period 10th October 2011 to 20th October 2011. This is the date range that the user selects
 
Rgds
Noel
  
 
 
 
 
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 21 Oct 2011 at 2:39am
Minimum(?param)
Maximum(?param)
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