I have built a form with buttons that run specific Crystal reports when clicked. What is happening is that the report window comes up, processes the report, and then closes down the report window. How can keep the report from shutting down? My code is below, what's missing?
Private Sub cmdPsychology_Click()
Dim CrystalReport As Object
Set CrystalReport = CreateObject("Crystal.CrystalReport"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
CrystalReport.ReportFileName = "d:\quarterly_reports\crystal_reports\psychology_visits.rpt"
CrystalReport.Action = 1
End Sub
Any suggestions are appreciated!
Private Sub cmdPsychology_Click()
Dim CrystalReport As Object
Set CrystalReport = CreateObject("Crystal.CrystalReport"
CrystalReport.ReportFileName = "d:\quarterly_reports\crystal_reports\psychology_visits.rpt"
CrystalReport.Action = 1
End Sub
Any suggestions are appreciated!