hello! how could i check whether there is a record to view in a Crystal report. below are my codes on how to display the crytal report: Dim crystal As CRAXDRT.Application Dim Report As CRAXDRT.Report Private Sub Form_Load() Set crystal = New CRAXDRT.Application 'Open Report Set Report = crystal.OpenReport(App.Path & "\reports\students.rpt") Report.DiscardSavedData 'Link Recordset to report 'report.Database.SetDataSource rs Report.ParameterFields.Item(1).AddCurrentValue (frmcoll_report.dtpStartDate.Value) Report.ParameterFields.Item(2).AddCurrentValue (frmcoll_report.dtpEndDate.Value) 'Link Viewer to report CRViewer.ReportSource = Report CRViewer.ViewReport CRViewer.Zoom 94 Set crystal = Nothing Set Report = Nothing WindowState = 2 End Sub please help me what statement should i place in order to determine if there are records to view... thanks!
http://www.codeguru.com/forum/archive/index.php/t-343411.html http://www.experts-exchange.com/Databases/Crystal_Reports/Q_21756703.html