I have read all the posts I can find on this subject. I keep getting a SUBSCRIPT OUT OF RANGE error from VB on the SetDataSource line below. Using examples from this forum, I have tried the following code:
Private Sub cmdCrystalTest_Click()
Dim rptTest As New CrystalReport1
'rsData is a an ADO recordset that is valid and contains data
rptTest.Database.SetDataSource rsData
CRViewer1.ReportSource = rptTest
CRViewer1.Refresh
End Sub
All I want to do is connect to a live Recordset and display the contents of the recordset on the report.
I am using Crystal Reports 8.5 and Visual Basic 6.0
Thanks!!!
Private Sub cmdCrystalTest_Click()
Dim rptTest As New CrystalReport1
'rsData is a an ADO recordset that is valid and contains data
rptTest.Database.SetDataSource rsData
CRViewer1.ReportSource = rptTest
CRViewer1.Refresh
End Sub
All I want to do is connect to a live Recordset and display the contents of the recordset on the report.
I am using Crystal Reports 8.5 and Visual Basic 6.0
Thanks!!!