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

Can't redirect to new server !!!

Status
Not open for further replies.

redgate

Programmer
Oct 15, 2001
29
0
0
GB
Hi All

I have paged through all the previous entries for this kind of thing but still can't get my code right.

I am trying to change the SQL Server for the report.

CrystalReportPath = "S:\CrystalReports\" + strENVRptNme

Set CrystalApplication = New CRAXDDRT.Application
Set CrystalReport = CrystalApplication.OpenReport(CrystalReportPath)

CrystalReport.DiscardSavedData

For Each CrystalTable In CrystalReport.Database.Tables
CrystalTable.SetLogOnInfo strEnvSrv, "MYDBS", "MUSR", "MPWD"
Next CrystalTable

Could someone please tell me where I am going wrong. The report contiues to point to the original machine.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top