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

SubReports Datasource

Status
Not open for further replies.

koliflor

Vendor
Feb 17, 2002
1
ES
I have designed a Report with 2 subreports.
With Visual Basic I make a Database. After I create a crystal reports object, tell it the report filename and the datasource.
The problem is that when I print the report, the subreports data don't change.
Somebody knows how to change the datasource of subreports?
thks
(excuse my bad english)
 
Dear it is simple

Just assing a DataSoure i.e runtime Recordset which contains the data of the sub report as u have done for the main report.

means do like this.
first declare to subreprot object and set them
using set statment from the main report.

"subReportObject1.setdatasource subRptRS1 , 3,1"
"subReportObject2.setdatasource subRptRS2 , 3,1"

for each of ur sub report in the main report.
Riaz Afridi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top