trillo
asked on
Crystal Reports DB problem
Hi experts.
I have a report, designed with crystal Reports. This report has been designed using an ODBC connection, using some tables on an ORACLE server. However I have an MS Access (.mdb) database with the same tables.
I need to change the connection at runtime, so, depending on the user's selection, the report should read either the Oracle database or the MSAccess database.....
Is this possible?
I have a report, designed with crystal Reports. This report has been designed using an ODBC connection, using some tables on an ORACLE server. However I have an MS Access (.mdb) database with the same tables.
I need to change the connection at runtime, so, depending on the user's selection, the report should read either the Oracle database or the MSAccess database.....
Is this possible?
Are you talking about changing the title from 'Oracle database'
to 'MSAccess database'?
Are you using the Report Design Component?
Are you asking for the VB code to change the location from Access to Oracle?
All of these are possible, but I'm not sure which one to answer.
to 'MSAccess database'?
Are you using the Report Design Component?
Are you asking for the VB code to change the location from Access to Oracle?
All of these are possible, but I'm not sure which one to answer.
ASKER
I'm looking for the VB code to change the ODBC connection... i've been trying the whole day long without success.
I've been changing the Connect propery for the Crystal Reports control, but it just doesn't work
I've been changing the Connect propery for the Crystal Reports control, but it just doesn't work
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
One easy way to change your ODBC settings is to use the RegisterDatabase method (found in DAO).