Solved

Crystal Reports Date in Parameter

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

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