Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date in crystal reports...

Status
Not open for further replies.

SN082

Programmer
Feb 24, 2002
6
BE
Hello, I have a table with a date field, my selectionformula uses the date field in order to select records to report. To archieve that I used two date variables, to select a period of time. How can I "put" the start and the end date in the header of my report?


all help would be appreciated.

Rgrds,

stijn
 
Use two parameter fields instead, then the parameters can be printed in the report wherever you like.
Alternatively make the variables 'global' and then create a two formulae which takes the values of one of the variables each and put the formulae on the page header.
 
robinlord,

could you please give me an example?


Thanks,
stijn
 
I typically would use a date range parameter for my start and end dates. The user is prompted for the date range and you ties your parameter field in witht he record selection formula.

To get the dates to appear at the top, try a formula like this:

ToText(minimum({?DRParm}))+" to "+ToText(maximum({?DRParm}))

Then place this formula in the page header.

if you really need variables, write a formula similar to my one above to get the dates in your page header. Software Support for Macola, Crystal Reports and Goldmine
dgilsdorf@mchsi.com
 
I typically would use a date range parameter for my start and end dates. The user is prompted for the date range and you ties your parameter field in witht he record selection formula.

To get the dates to appear at the top, try a formula like this:

ToText(minimum({?DRParm}))+" to "+ToText(maximum({?DRParm}))

Then place this formula in the page header.

if you really need variables, write a formula similar to my one above to get the dates in your page header. Software Support for Macola, Crystal Reports and Goldmine
dgilsdorf@mchsi.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top