Click to See Complete Forum and Search --> : Crystal Report


regis
January 5th, 2000, 05:27 PM
I have a report (x.rpt) in "c:\temp" and I call this report in VB6. When I maked the report in crystal I used the Data in "C:\temp\BD.mdb". Now, I would like to use the (x.rpt) with VB but my new data is in "C:\xxx\BDTest.mdb". Do you know how can I change the DataBase in Vb for my Report (x.rpt). Or is't possible to use the (x.rpt) with an other DataBase?
(The DataBase have the same fields)

Sorry for my english

Tanks!
Redg

Aaron Young
January 5th, 2000, 09:08 PM
You can change the Database used with a Report using the CrystalReport1.Database.Tables(1).Location Property, ie.

CrystalReport1.Database.Tables(1).Location = "C:\xxx\BDTest.mdb"

Aaron Young
Analyst Programmer
ajyoung@pressenter.com
aarony@redwingsoftware.com