I have a VB6 app and I am using the CRViewer. I have a report based on a TTX file to which I pass an ADO recordset at runtime using the following code
When I view the report the first time, everything works fine, however when I close the form with the viewer on it, and try to view the report with different parameters, I get the same data in the report. I check the recordset right before I call the SetDataSource method, and it is fine, but the report has the data from the previous view.
Any ideas would be greatly appreciated.
Thanks,
Asa Asa Monsey
samonsey@houston.rr.com
Maxim Group Consultant
Visual Basic / SQL Server
Code:
Set crdDatabase = rptReport.Database
Set crtTable = crdDatabase.Tables(1)
crtTable.SetDataSource Rst, 3
When I view the report the first time, everything works fine, however when I close the form with the viewer on it, and try to view the report with different parameters, I get the same data in the report. I check the recordset right before I call the SetDataSource method, and it is fine, but the report has the data from the previous view.
Any ideas would be greatly appreciated.
Thanks,
Asa Asa Monsey
samonsey@houston.rr.com
Maxim Group Consultant
Visual Basic / SQL Server