I am using crystal command to write my own SQL. I need to add a parameter (in the command window, not in the report) that is the users see as a date but I need to convert that to a number format YYYYMMDD to match the records in the database (they will not change the database). They insist on date parameter.
I am using Crystal 2008 connecting to a AS400 via a IBM iSeries ODBC driver DB2 UDB. (Straight SQL does not work, not all DB2 SQL works either, it is some kind of weird Crystal/SQL/DB2 driver hybred) Assistance GREATLY appreciated!!!!
Sample code:
Sales.DATE >= {?Begin Date} and
Sales.DATE <= {?End Date}
Sales.date is number field
parameter field is date field
I have tried converting the database field to date (it works) but it is too slow. As a test I set the parameter to number field and it is very quick!
I am using Crystal 2008 connecting to a AS400 via a IBM iSeries ODBC driver DB2 UDB. (Straight SQL does not work, not all DB2 SQL works either, it is some kind of weird Crystal/SQL/DB2 driver hybred) Assistance GREATLY appreciated!!!!
Sample code:
Sales.DATE >= {?Begin Date} and
Sales.DATE <= {?End Date}
Sales.date is number field
parameter field is date field
I have tried converting the database field to date (it works) but it is too slow. As a test I set the parameter to number field and it is very quick!