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!

ADO Recordset appears empty in report

Status
Not open for further replies.

samonsey

Programmer
Jan 29, 2001
19
US
I have a report (8.5) based on a TTX file to which I pass an ADO recordset using the VB6 code below:
Code:
     Set Rst = oEvent.GetDailyTelecons(datStart)
            
     Set rptReport = rptDailyTelecons
            
     Set crdDatabase = rptReport.Database
     Set crtTable = crdDatabase.Tables(1)
     For Each crtTable In crdDatabase.Tables
         If crtTable.Name = "DailyTelecons_ttx" Then
             crtTable.SetDataSource Rst, 3
         End If
     Next
I know the recordset has records, but none appear on the report. When I base the report on a direct connection to the database (not acceptable in production) the data shows up.

Any ideas would be greatly appreciated.

Thanks,
Asa Monsey
samonsey@houston.rr.com
Maxim Group Consultant
Visual Basic / SQL Server
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top