Dear Experts,
I'm having a problem with Crystal Report Viewer CRViewer1 not showing right amount of records speficied in my ADODB Recordset. The viewer instead is always displaying all records from my database.
I had proven using the VB6 debugger that the recordset recordcount contained right amount of records to display.
I'm using VB6, and Crystal Reports 7. Also had tried using the VS integrated Crystal Reports Designer to generate my report. But, the results are the same.
In the declaration section, I have these lines
Dim Report1 As New CrystalReport1
Dim rsProblemsReport As New ADODB.Recordset
And here is the code to display with the viewer after recordset had been filled,
Private Sub Form_Load()
Report1.Database.Tables(1).SetDataSource (rsProblemsReport)
CRViewer1.ReportSource = Report1
CRViewer1.ViewReport
End Sub
Could anyone tell me what could be wrong with my codes ?
Thanks very much for your help.
Billy.
I'm having a problem with Crystal Report Viewer CRViewer1 not showing right amount of records speficied in my ADODB Recordset. The viewer instead is always displaying all records from my database.
I had proven using the VB6 debugger that the recordset recordcount contained right amount of records to display.
I'm using VB6, and Crystal Reports 7. Also had tried using the VS integrated Crystal Reports Designer to generate my report. But, the results are the same.
In the declaration section, I have these lines
Dim Report1 As New CrystalReport1
Dim rsProblemsReport As New ADODB.Recordset
And here is the code to display with the viewer after recordset had been filled,
Private Sub Form_Load()
Report1.Database.Tables(1).SetDataSource (rsProblemsReport)
CRViewer1.ReportSource = Report1
CRViewer1.ViewReport
End Sub
Could anyone tell me what could be wrong with my codes ?
Thanks very much for your help.
Billy.