Question : Crystal 10 & Access 2007 Issue

I am currently working on an app developed in VB6 that can connect to SQL and Access (97,2000,2007) databases depending on client preference and using crystal 10 to generate reports out of the app.

I'm having an issue with passing the record selection formula to crystal only when the client is running with access 2007 databases.

This is the record selection formula I am passing:
1:
({Transactions.TType} =1 or  {Transactions.TType} =3)  and ( {Transactions.Date} >= Date( 2010, 4, 18) and  {Transactions.Date} <= Date( 2010, 8, 26) )


Which generates the following error for the client:

Failed to open a rowset.
Details: ADO Error Code: 0x80040e14
Source: Microsoft Office Access Database Engine
Description: Undefined function 'CONVERT' in expression.
SQL State: 3085
Native Error: -530123806

If I remove the date part from the record selection, ie:
1:
({Transactions.TType} =1 or  {Transactions.TType} =3)

It runs fine.

This issue only occurs for access 2007 databases when passing the date portion of the record selection.  If I omit only the date portion of the selection formula, the report runs fine so I don't believe it is to do with the connection properties to the database etc.

Answer : Crystal 10 & Access 2007 Issue

Where are you using the selection formula?

Try using DateTime with the time set to 0,0,0

mlmcc
Random Solutions  
 
programming4us programming4us