Solved

Crystal Reports Date in Parameter

Posted on 2011-09-27
3
319 Views
Last Modified: 2012-05-12
Hi,

I am trying to create a running parameter that will utilise the "is in period"

When a user runs the report I want them to be able select from a drop down menu the options listed in the picture attached.

Can anyone explain how to set the parameter up?

Thanks
example.png
0
Comment
Question by:Dan560
  • 2
3 Comments
 
LVL 19

Expert Comment

by:GJParker
ID: 36710068
You would need to type each value into a parameter and handle the results from this paramter in the record selection formula i.e.

If {?Param} = 'Last7Days' Then
  {table.date} >= Today - 7 and {table.date} <= Today
Else If {?Param} = 'MonthToDate' Then
  {table.date} > Today - Day(Today) and {table.date} <= Today
Else If .........etc.

HTH
0
 
LVL 19

Accepted Solution

by:
GJParker earned 500 total points
ID: 36710107
actually the selection formula can use the relative function

If {?Param} = 'Last7Days' Then
  {table.date} In Last7days
Else If {?Param} = 'MonthToDate' Then
  {table.date} In MonthToDate
Else If .........etc.

0
 
LVL 2

Author Comment

by:Dan560
ID: 36710251
Thanks
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question