Link to home
Start Free TrialLog in
Avatar of trillo
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?
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

I think that it is easier to change your ODBC settings than your database location.

One easy way to change your ODBC settings is to use the RegisterDatabase method (found in DAO).
Avatar of jflemin
jflemin

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.
Avatar of trillo

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
ASKER CERTIFIED SOLUTION
Avatar of jflemin
jflemin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial