Hi there,
My report contains a field "termination_date", and I would like to have parameters that specify a range of dates so that all "termination_date"s in that range are picked.
Here is the formula that I am using, but it does not seem to work.
(IF {?Start Date} <> DATE ( 1900,01,01 ) AND {?End Date} <> DATE ( 1900,01,01 ) THEN
{Query.TO_CHAR(PERS.ACTUAL_RETIRE_DATE,'DD-MON-YYYY')} >= {?Start Date} AND
{Query.TO_CHAR(PERS.ACTUAL_RETIRE_DATE,'DD-MON-YYYY')} <= {?End Date}
ELSE IF {?Start Date} = DATE ( 1900,01,01 ) AND {?End Date} <> DATE ( 1900,01,01 ) THEN
{Query.TO_CHAR(PERS.ACTUAL_RETIRE_DATE,'DD-MON-YYYY')} <= {?Start Date}
ELSE IF {?Start Date} <> DATE ( 1900,01,01 ) AND {?End Date} = DATE ( 1900,01,01 ) THEN
{Query.TO_CHAR(PERS.ACTUAL_RETIRE_DATE,'DD-MON-YYYY')} >= {?Start Date}
ELSE
(ISNULL ({Query.TO_CHAR(PERS.ACTUAL_RETIRE_DATE,'DD-MON-YYYY')}) OR
{Query.TO_CHAR(PERS.ACTUAL_RETIRE_DATE,'DD-MON-YYYY')} > DATE ( 1900,01,01 )))
My report contains a field "termination_date", and I would like to have parameters that specify a range of dates so that all "termination_date"s in that range are picked.
Here is the formula that I am using, but it does not seem to work.
(IF {?Start Date} <> DATE ( 1900,01,01 ) AND {?End Date} <> DATE ( 1900,01,01 ) THEN
{Query.TO_CHAR(PERS.ACTUAL_RETIRE_DATE,'DD-MON-YYYY')} >= {?Start Date} AND
{Query.TO_CHAR(PERS.ACTUAL_RETIRE_DATE,'DD-MON-YYYY')} <= {?End Date}
ELSE IF {?Start Date} = DATE ( 1900,01,01 ) AND {?End Date} <> DATE ( 1900,01,01 ) THEN
{Query.TO_CHAR(PERS.ACTUAL_RETIRE_DATE,'DD-MON-YYYY')} <= {?Start Date}
ELSE IF {?Start Date} <> DATE ( 1900,01,01 ) AND {?End Date} = DATE ( 1900,01,01 ) THEN
{Query.TO_CHAR(PERS.ACTUAL_RETIRE_DATE,'DD-MON-YYYY')} >= {?Start Date}
ELSE
(ISNULL ({Query.TO_CHAR(PERS.ACTUAL_RETIRE_DATE,'DD-MON-YYYY')}) OR
{Query.TO_CHAR(PERS.ACTUAL_RETIRE_DATE,'DD-MON-YYYY')} > DATE ( 1900,01,01 )))