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!

Set database and connect string through VB6

Status
Not open for further replies.

MichaelaLee

Programmer
May 3, 2004
71
US
Hi Everyone,
I have the following setup.
Running VB6, Crystal Reports 9.0
Data Eviroment (Reports getting data from it)
I have several reports that I develped using the Designer in VB, and I'm getting ready to distribute this app and now I need to set the data info in the report through VB. Right now the database is an Access database, may change in the furture(not likely). I have one form that displays all the reports based on a parameter I pass into the form on loading. My proplem now, is that the reports have the location and connect string hardcoded in the report, and I need to change it programmically. How can this be done. Thanks. I've tried looking for cr.Datafiles(0) (may be older way of doing it) and a view other things to no avail. Thanks.
Michael Lee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top