Wrox Programmer Forums
|
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 12th, 2005, 10:52 AM
Registered User
 
Join Date: Sep 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Parameter

Greettings..!
I am selecting a record based on 2 dates.
How can i display this 2 dates on report header which i am passing from the form.
I mean to say ,How i can display 2 date parameters on the report, which i am passing from the form.

Thanks in advance


Cheers
Shanib
 
Old September 30th, 2005, 02:35 AM
Registered User
 
Join Date: Sep 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You have not mentioned whether you have passed these in as parameters or directly into the selection formula.

If they are as parameters then they are available as fields to be dragged on to the report, just like a database field. If you have set the parameter up as a range rather than two distinct parameters, then you need to create a formula for each of the two dates. The start of range, or the lower date should use the Minimum() function:
     Minimum({?Date Range Parameter})
while the end date, or the later date, formula should use the Maximum function:
     Maximum({?Date Range Parameter})
You then drag these formulae onto the page.

If you fed the dates into the report directly through the selection formula, then you need to create a formula within Crystal Reports that parses the "Record Selection Formula" special field to pull the relevant information - but I think that it might be easier to set up a range parameter and do as it stated above.


Derek Stobbart
Business Objects Consultant - Perth, Western Australia





Similar Threads
Thread Thread Starter Forum Replies Last Post
Parameter object malfunction - out parameter dash dev C# 2005 6 December 4th, 2007 12:58 PM
subreport parameter lisabb Access 2 October 26th, 2007 12:10 PM
parameter umeshtheone Beginning VB 6 0 May 23rd, 2007 01:13 AM
another parameter drachx Crystal Reports 0 October 3rd, 2005 07:52 PM
Parameter Bhavin Crystal Reports 4 September 9th, 2004 10:47 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.