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!

ReportSource Error

Status
Not open for further replies.

gazza11

Technical User
Jan 12, 2003
46
0
0
AU
I am using VB6 with Crystal reports 8.5. I have a single viewer on a form and within my VB code I have multiple instantiations of reports. Eg at the start of my code I have:

Dim svcClass as new rptClass ' Crystal rpt with class info
Dim svcEquip as new rptEquip ' Crystal rpt with equip info

Depending on what report I select from the menu my viewer (crvService) uses a different report source.

ie. For first menu - crvService.reportsource = svcClass
and then next menu - crvService.reportsource = svcEquip

Everything works separately but when I put it altogether I get a "method 'reportsource' of object failed" error.

Has anyone any ideas - seems like I need to reset that data source or something
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top