Crystal Reports Date in Parameter

Posted on 2011-09-27
Last Modified: 2012-05-12

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?

Question by:Dan560
  • 2
LVL 19

Expert Comment

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
  {} >= Today - 7 and {} <= Today
Else If {?Param} = 'MonthToDate' Then
  {} > Today - Day(Today) and {} <= Today
Else If .........etc.

LVL 19

Accepted Solution

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

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


Author Comment

ID: 36710251

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Crystal Reports remove alpha characters only 5 51
Formatting a Crystal Reports Report 9 84
Crystal report highlighting 5 38
Crystal image Object type? 7 33
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
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…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

776 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