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!

Input Date Range Parm not displaying 3

Status
Not open for further replies.

TimothyP

Programmer
Aug 6, 2002
135
US
I am converting a CCYYMMDD string field to a date field with the following formula:

cdate (mid({Table.Datefield},5,2)&"/"&right({Table.Datefield},2)&"/"&left({Table.Datefield},4))

I named the above formula "f_converted_date".

I have a date range input parameter to select a range of dates off my source table.

My selection criteria looks like this ({@f_converted_date} = {?Date_Range}.

My report seems to be selecting the correct dates for the detail records successfully. However, when I try to add the ?Date_Range input parameter to the title of the report, it is blank.

Any suggestions?

Thanks in advance,
Tim
 
You need to handle range parameters differently than discrete params when placing them on a report. Ranges are treated like arrays, so you need to use a formula to get the dates out:

//@DisplayRange
"From: " + ToText(Minimum({?Date_Range}), "MM/dd/yyyy") + " to " + ToText(Maximum({?Date_Range}), "MM/dd/yyyy")

-dave
 
I have a FAQ on this:

faq767-5684

It covers what you speak of plus the various combinations on ranges and discrete values.

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top