Greetings,
Using Crystal Report 11, SQL 2005 database.
This older thread here:
Has exactly what I needed, and it works.. almost. If I comment out the 'Specified Range' the period ranges perform perfectly. If I don't comment out the last line of the formula and choose one of the period range criteria, it will not let me choose 'ok' leaving the date range field blank. It is still expecting me to fill in specified range information. If I choose specified range and fill in the date information it performs normally.
So in summary:
Choose Year To Date, still expecting me to enter date range and will not allow the prompt to close.
Choose Specified Range, fill in Date data works fine.
Remove Specified range from formula, Choose Year To Date, works perfectly.
Here are my formulas:
Parameters:
?RangeType
Type:String
Value:
Life To Date
Year To Date
Specified Range
Options:
Allow custom values True
Allow multiple values False
Allow discrete values True
Allow range values False
?DateRange
Type:date time
value:v_rpt_InvoicedRepairs.CLOSED
Options:
Allow Multiple Values false
allow discrete values false
allow range values true
Thank you for any assistance,
Julie
CRXI CE10 / RS2005 Sql DB
Using Crystal Report 11, SQL 2005 database.
This older thread here:
Has exactly what I needed, and it works.. almost. If I comment out the 'Specified Range' the period ranges perform perfectly. If I don't comment out the last line of the formula and choose one of the period range criteria, it will not let me choose 'ok' leaving the date range field blank. It is still expecting me to fill in specified range information. If I choose specified range and fill in the date information it performs normally.
So in summary:
Choose Year To Date, still expecting me to enter date range and will not allow the prompt to close.
Choose Specified Range, fill in Date data works fine.
Remove Specified range from formula, Choose Year To Date, works perfectly.
Here are my formulas:
Code:
//Record Selection
{v_rpt_InvoicedRepairs.CUSTID} like {?Customer ID} and
(
select {?RangeType}
case "Life To Date" : {v_rpt_InvoicedRepairs.CLOSED} in AllDatesToToday
case "Year To Date" : {v_rpt_InvoicedRepairs.CLOSED} in YearToDate
case "Specified Range" : {v_rpt_InvoicedRepairs.CLOSED} = {?DateRange}
)
Parameters:
?RangeType
Type:String
Value:
Life To Date
Year To Date
Specified Range
Options:
Allow custom values True
Allow multiple values False
Allow discrete values True
Allow range values False
?DateRange
Type:date time
value:v_rpt_InvoicedRepairs.CLOSED
Options:
Allow Multiple Values false
allow discrete values false
allow range values true
Thank you for any assistance,
Julie
CRXI CE10 / RS2005 Sql DB