Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to change db at runtime 1

Status
Not open for further replies.

mukwon

Technical User
Jun 6, 2004
4
US
i am running cr 4.5 (no choice right now) and need to change the location of the ms access db at runtime.

any ideas

jim hintz
mukwon

 
Set the Report control's DataFiles property:
[tt]
CrystalReport1.DataFiles(0) = "C:\NewDB.mdb"
[/tt]
If you're dealing with subreports as well, check out this thread (thread149-838187).

-dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top