Hi
Unable to preview all the records from a recordset using Data reports in VB 6.0 . The program works perfectly when I run this for the first time I enter VB 6.0. And also it works perfectly when I debug the program step by step. I feel I should use either refresh or set command before I use rpt.show code.
I have used following codes.
------------------------------------------------------------------------------------
Private Sub cmdPreview_Click()
Call Summary 'To create a record set during run time'
DataEnvironment1.Connection2.ConnectionString = frmEstimate.StatusBar1.Panels(1).Text 'To select .mdb runtime'
rptSummary.Refresh
rptSummary.Show vbModal 'To Preview the report'
Set DataEnvironment1 = Nothing
End Sub
------------------------------------------------------------------------------------
Can any body give me the solution please?