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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Showing values from date range parameter on report 1

Status
Not open for further replies.

Chats

Technical User
Mar 12, 2002
88
GB
Second query today!

I am using Crystal 8.5, Oracle database.

I have a parameter field which is a date field, accepting range values.

I want to show this date range on my report header, because it is a range parameter, when I drop the field name onto my report, I get a blank.

Can anybody tell me how to get around this please?

Cheers

Ade
 
Create formulas :

Minimum({?DateRange})
Maximum({?DateRange})

Reebo
Scotland (Sunny with a Smile)
 
As Reebo99 mentioned, formulas work well.

"Effective: " + ToText(Minimum({WRKLOAD_RPT_1.EFF_DT})) + " To: " + ToText(Maximum({WRKLOAD_RPT_1.EFF_DT}))

However, I've found that only the date range of the result set is what displays on the report. Not necessarily the date range values searched for.
 
amatson,

in the original thread :

I have a parameter field which is a date field, accepting range values.

Say the date range parameter is called {?DateRange}, if you create a formula minimum({?DateRange}), you will get the lowest date value of the parameter.

However, in your example, you will only get the lowest date value of the recordset returned.



Reebo
Scotland (Sunny with a Smile)
 
'Dates From: '+ToText(Minimum({?DateRange}))+' To: '+ToText(Maximum({?DateRange}))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top