I am creating a report which is based on a command object. The query requires two parameters - "Begin Date" and "End Date" Because of the way the data is stored, we need to have these parameters within the query, not passed from the report.
Using Crystal 9
Informix database
The database field that is the target of the WHERE clause is a date/time STRING in the format 2003/12/16 09:00:00.00
The query contains the following clause:
WHERE
Date(table.dtime_field) >= {?Begin Ship Date}
and Date(table.dtime_field) <={?End Ship Date}
The report will run on one machine (a win2000 server) but not on the other (Win2000 Professional) Also will not run in ePortfolio on Enterprise 9
If I modify the command to:
WHERE
Date(table.dtime_field) >= '2003/12/16 09:00:00.00'
and Date(table.dtime_field)<='2003/12/16 09:00:00.00 '
it will process
If I wrap the parameters in quotes ('{?Begin Ship Date}'), I get a "syntax error"
What is the appropriate syntax to eliminate this error?
Using Crystal 9
Informix database
The database field that is the target of the WHERE clause is a date/time STRING in the format 2003/12/16 09:00:00.00
The query contains the following clause:
WHERE
Date(table.dtime_field) >= {?Begin Ship Date}
and Date(table.dtime_field) <={?End Ship Date}
The report will run on one machine (a win2000 server) but not on the other (Win2000 Professional) Also will not run in ePortfolio on Enterprise 9
If I modify the command to:
WHERE
Date(table.dtime_field) >= '2003/12/16 09:00:00.00'
and Date(table.dtime_field)<='2003/12/16 09:00:00.00 '
it will process
If I wrap the parameters in quotes ('{?Begin Ship Date}'), I get a "syntax error"
What is the appropriate syntax to eliminate this error?