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

Changing data source dynamically in runtime

Status
Not open for further replies.

awhitsel

Programmer
Feb 22, 2001
80
US
I have an application written in VB 5 using Crystal Reports 9 for a couple of reports.

In the code I am using the Report.Database.LogOnServer to set the DSN and database that the CR9 report is looking off of.

We would like to be able to change the DSN and database between a production and test environment in runtime. We tried using an If.Then.Else statement to do the change but it fails unless we use the production environment.

Please advise.

Thanks.
 
I've got a faq on this (faq768-5374) - How do I change Database location at runtime (VB6 - RDC)?

-dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top