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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I set database location on crystal rpts to app path?

Status
Not open for further replies.

paco2001

Technical User
Aug 21, 2001
10
US
I need to learn how to set the crystal reports database location to the database's path. I'm using Crystal Reports 4.6.1.0 which is included with Microsoft Visual Basic 6. I use ms access as my database and would like to have crystal reports know where that database is no matter where the user places the folder that contains the vb program, the database and the crystal reports that I have designed to workd with the acces database. I have the datacontrol set to the application path but how do I set the crystal report's path to the database?
 
Try this

crpt1.DataFiles(0) = app.path & "YourDatabase" David Paulson

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top