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

SetDatabase??

Status
Not open for further replies.

Schimsky

Programmer
Oct 4, 2003
23
US
Hi,

Using VB.net and Crystal 9 and an MS Access Database.

Here's my current code...

Dim Application As New CRAXDRT.Application
Dim Report As CRAXDRT.Report
Set Report = Application.OpenReport("c:\MyReport.rpt")
CRViewer91.ReportSource = Report
CRViewer91.ViewReport

I would like to change the location of the database being used by the report.

I've Tried:
Report.Database.SetDataSource ("c:\SomeOtherMDB.mdb")
But this through a Wacky error.

Any Ideas????

Thanks.

Steve

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top