Click to See Complete Forum and Search --> : Changing database location in crystal reports ocx


jmserra
October 18th, 1999, 05:28 AM
Hi,
I have the following problem.
When I change in code the location of the database in my code and set the datafiles(0) property acordingly
I get the "error detected by database dll". Why?
If I don't change the location it works fine.

VB4-32 and Crystal Reports 4.5

mlamelas
November 16th, 1999, 02:41 PM
Does your report have any subreports. If it does, you have to change the database location for the subreports also.

Mel Lamelas

Bin
November 16th, 1999, 11:48 PM
I guess the path of the database to which the .RPT file is pointing might be wrong. Try this.

Open the RPT file in crystal reports and point the database location to the one that you are assigning using the DataFiles property. Save the RPT file. Hope this works.

I guess, at the time of creation of a RPT file the databse location asked is referenced in the RPT file.