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!

How to pass two recordsets for a report/subreport?

Status
Not open for further replies.

heynickx

Programmer
Apr 16, 2003
1
FR
I'm working with VB 6.0 and CR 8.5.
I want to fill using VB a report with subreport via two recordsets (one containing general info, the other more details). Each time the subreport looks for the link with the report a dialog box pops up asking for a parameter value. This should be done internally by CR.
Is this possible?
 
try this code snippet...

crxReport.Database.SetDataSource rsSample1, 3, 1
crxReport.Database.SetDataSource rsSample2, 3, 2
crxReport.ReadRecords

rsSample1 & rsSample2 are ADODB.recorset. number 3 is default dont change that. 1 & 2 are the index of the tables in your report.

i hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top