I am using Crystal Reports version 10.0 and Oracle Server Connection (Oracle native driver connection). I have a parameter named Starting_date and prompts for one value of a date. This parameter has been set as a Date Value Type. In the Select Expert I specify the criteria for the Record Selection where the Database Date field is supposed to find records with an exact match to the parameter value passed in
for e.g. {Table1.START_DATE} = {?Starting_date},
but on executing the report the SQL from the menu Database-> Show SQL Query... shows that the Database field is compared with a Date Range of a complete day whereas my select expert does not have a comparison with a date range.
If a parameter value of 05/05/2004 is passed through the SQL Query shows as the following
WHERE "Table1"."RANK"<51 AND
"Table1"."PERIOD_WINDOWS_NUM"<3 AND
"Table1"."LEVEL_3_ID"=18 AND
("Table1"."START_DATE">=TO_DATE ('05-05-2004 00:00:00', 'DD-MM-YYYY HH24:MI:SS') AND
"Table1"."START_DATE"<TO_DATE ('06-05-2004 00:00:00', 'DD-MM-YYYY HH24:MI:SS'))
In versions previous to Crystal Reports 9.0 there was an option to Convert Date-time fields to Date and this problem used to be taken care of. Since in Crystal Report version 10.0 this option is unavailable from the File->Report Options menu, I would like to know how to handle this issue.
for e.g. {Table1.START_DATE} = {?Starting_date},
but on executing the report the SQL from the menu Database-> Show SQL Query... shows that the Database field is compared with a Date Range of a complete day whereas my select expert does not have a comparison with a date range.
If a parameter value of 05/05/2004 is passed through the SQL Query shows as the following
WHERE "Table1"."RANK"<51 AND
"Table1"."PERIOD_WINDOWS_NUM"<3 AND
"Table1"."LEVEL_3_ID"=18 AND
("Table1"."START_DATE">=TO_DATE ('05-05-2004 00:00:00', 'DD-MM-YYYY HH24:MI:SS') AND
"Table1"."START_DATE"<TO_DATE ('06-05-2004 00:00:00', 'DD-MM-YYYY HH24:MI:SS'))
In versions previous to Crystal Reports 9.0 there was an option to Convert Date-time fields to Date and this problem used to be taken care of. Since in Crystal Report version 10.0 this option is unavailable from the File->Report Options menu, I would like to know how to handle this issue.