In Crystal reports 9, I have the following in my "Show SQL Query"
<snip>
("SERVICE_CALL"."CREATE_DT">={ts '2004-06-19 00:00:00'} AND "SERVICE_CALL"."CREATE_DT"<{ts '2004-07-31 00:00:00'})
<snip>
Everytime I run my report (daily) I have a different date range automatically entered from the following formula:
select currentdate
case Date (2004, 07, 28 ): {SERVICE_CALL.CREATE_DT} in Date (2004, 06, 19) to Date (2004, 07, 30)
case Date (2004, 08, 28 ): {SERVICE_CALL.CREATE_DT} in Date (2004, 07, 31) to Date (2004, 08, 27)
case Date (2004, 09, 18 ): {SERVICE_CALL.CREATE_DT} in Date (2004, 08, 28) to Date (2004, 09, 17)
case Date (2004, 10, 30 ): {SERVICE_CALL.CREATE_DT} in Date (2004, 09, 18) to Date (2004, 10, 29)
case Date (2004, 11, 27 ): {SERVICE_CALL.CREATE_DT} in Date (2004, 10, 30) to Date (2004, 11, 26)
case Date (2004, 12, 31 ): {SERVICE_CALL.CREATE_DT} in Date (2004, 11, 27) to Date (2004, 12, 31)
Default: False
When the above case is TRUE, the report runs.
How do I get the correct date range to automatically print at the top of the report? IE: June 16, 2004 - July 30, 2004
<snip>
("SERVICE_CALL"."CREATE_DT">={ts '2004-06-19 00:00:00'} AND "SERVICE_CALL"."CREATE_DT"<{ts '2004-07-31 00:00:00'})
<snip>
Everytime I run my report (daily) I have a different date range automatically entered from the following formula:
select currentdate
case Date (2004, 07, 28 ): {SERVICE_CALL.CREATE_DT} in Date (2004, 06, 19) to Date (2004, 07, 30)
case Date (2004, 08, 28 ): {SERVICE_CALL.CREATE_DT} in Date (2004, 07, 31) to Date (2004, 08, 27)
case Date (2004, 09, 18 ): {SERVICE_CALL.CREATE_DT} in Date (2004, 08, 28) to Date (2004, 09, 17)
case Date (2004, 10, 30 ): {SERVICE_CALL.CREATE_DT} in Date (2004, 09, 18) to Date (2004, 10, 29)
case Date (2004, 11, 27 ): {SERVICE_CALL.CREATE_DT} in Date (2004, 10, 30) to Date (2004, 11, 26)
case Date (2004, 12, 31 ): {SERVICE_CALL.CREATE_DT} in Date (2004, 11, 27) to Date (2004, 12, 31)
Default: False
When the above case is TRUE, the report runs.
How do I get the correct date range to automatically print at the top of the report? IE: June 16, 2004 - July 30, 2004