Print Page | Close Window

pass a parameter

Printed From: Crystal Reports Book
Category: Crystal Reports .NET 2003
Forum Name: Report Design
Forum Discription: The best way to design a report and problems you have encountered
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=9018
Printed Date: 29 Apr 2024 at 10:17am


Topic: pass a parameter
Posted By: Altec
Subject: pass a parameter
Date Posted: 02 Feb 2010 at 9:10am

How can I by pass a parameter?

I have two parameters in my reports. The first parameter is a select menu the second is a date range. How can I by pass the date range if a user only wanted to use the first parameter?




Replies:
Posted By: lockwelle
Date Posted: 02 Feb 2010 at 9:42am
how does the report select data?
The simpliest solution is to pass a large date range if the first parameter doesn't require the second, and your report needs it.
 
something like a start date of 1/1/1900 and 12/31/2200 (yeah you can make it bigger but...
 
Does this work for you?


Posted By: Altec
Date Posted: 02 Feb 2010 at 9:52am

Thanks for the reply.

The first parameter is a simple menu selection. If the first item in the menu is selected then it returns the report without passing any parameter. If the second menu item is select then it uses the values that was entered manually into the date range parameter and generates the report based on that information.

Thanks,



Print Page | Close Window