Solved

Crystal Reports Date in Parameter

Posted on 2011-09-27
3
283 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

757 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now