Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: leaving a date parameter blank Post Reply Post New Topic
Author Message
sandy
Groupie
Groupie


Joined: 10 Jan 2007
Location: United States
Online Status: Offline
Posts: 45
Quote sandy Replybullet Topic: leaving a date parameter blank
    Posted: 25 Jan 2007 at 6:58am

If a report has date parameters for the user to use in their selection but instead they choose to enter only a check # parameter without knowing the dates, how do you attempt to leave the date parameter blank?

IP IP Logged
EscApe
Newbie
Newbie


Joined: 13 Nov 2006
Location: Finland
Online Status: Offline
Posts: 37
Quote EscApe Replybullet Posted: 07 May 2007 at 3:13am
I suggest the following solution.

- set your default value for parameter to history (a date that you know, will never be used in this report, in my example it is set to 1.1.2007). This will be the date used, when the user does not know the date.

- add if statement to Select Expert:
If {?PDate}=date(2007,1,1) Then {Invoice.InvoiceDate} like > date(2007,1,1) else {Invoice.InvoiceDate} = {?PDate}
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.