I am using Crystal Reports XI with CR Oracle ODBC Driver 4.2 to an Oracle 8 database. I am trying to use a fiscal year parameter within a command (in a subreport) in order to accomplish the equivalent of:
where
"table"."date" < date({?fiscal year},7,1)
{?fiscal year} is a 4-digit number parameter, which will be used to link the subreport to a main report fiscal year parameter. Does anyone know the correct syntax? I've tried many different approaches, e.g., like:
"table"."date" < T0_DATE(TO_CHAR({?Fiscal Year},'9999')||'-07-01','YYYY-MM-DD')
I get an error:
"Unrecognizable ODBC SQL escape sequence."
Thanks for any help.
-LB
where
"table"."date" < date({?fiscal year},7,1)
{?fiscal year} is a 4-digit number parameter, which will be used to link the subreport to a main report fiscal year parameter. Does anyone know the correct syntax? I've tried many different approaches, e.g., like:
"table"."date" < T0_DATE(TO_CHAR({?Fiscal Year},'9999')||'-07-01','YYYY-MM-DD')
I get an error:
"Unrecognizable ODBC SQL escape sequence."
Thanks for any help.
-LB