Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Crystal Reports Date in Parameter

Posted on 2011-09-27
Medium Priority
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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

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. …
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 course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

722 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