JBGallagher
Programmer
I am running VB 6 and Crystal Reports 8.5 with an Access database. I have created a simple report that does not save the data when run. I want the data to refresh every time you open it. I added the report to my VB app as an existing reprot that should show in a CRViewer control.
This is the code:
Dim Report As New CrystalReport1
Private Sub Form_Load()
Screen.MousePointer = vbHourglass
CRViewer1.ReportSource = Report
CRViewer1.ViewReport
Screen.MousePointer = vbDefault
End Sub
When I step throught this report source is allways = Nothing
When the CRViewer1.ViewReport line executes I get the "Server has not yet been opened" error.
This is a very simple DB, there is no password, or username required. I have been using ADO to connect to the database for inserts, updates and selects.
The report will run no problem in the Crystal interface.
Any help would be great.
Thanks
This is the code:
Dim Report As New CrystalReport1
Private Sub Form_Load()
Screen.MousePointer = vbHourglass
CRViewer1.ReportSource = Report
CRViewer1.ViewReport
Screen.MousePointer = vbDefault
End Sub
When I step throught this report source is allways = Nothing
When the CRViewer1.ViewReport line executes I get the "Server has not yet been opened" error.
This is a very simple DB, there is no password, or username required. I have been using ADO to connect to the database for inserts, updates and selects.
The report will run no problem in the Crystal interface.
Any help would be great.
Thanks