Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Launching Crystal Report from Excel Form 'Kind of works'?

Status
Not open for further replies.

Apollo6

Technical User
Jan 27, 2000
418
US
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")
CrystalReport.ReportFileName = "d:\quarterly_reports\crystal_reports\psychology_visits.rpt"
CrystalReport.Action = 1

End Sub


Any suggestions are appreciated!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top