P
PWright
I have a runtime Access XP db that uses a Crystal Reports control
(crystl32.ocx). The Crystal Reports are written in 8.5. The database
shuts down fine unless a Crystal Report has been opened. Then you
must CTRL-ALT-DEL to get out of Access. Any ideas why this is
happening and how to avert the problem?
The ocx is on a subform being called from a main form that is a
switchboard of sorts.
Here is the code I use:
************
CrystalReport3.ReportFileName = "c:\reportname.rpt"
CrystalReport3.Destination = 0
CrystalReport3.WindowState = 2
CrystalReport3.Action = 1
************
When I quit the database the form closes but the Access window is left
open and it cannot be closed without CTRL-ALT-DEL.
Do I need to somehow programmatically close the Crystal Report as in
CrystalReport3.Object = Nothing (which is not supported)
or something to that effect?
I have tried setting the recordset referenced to Nothing.
Access does seem to shut down okay if I open a different subform.
It has been suggested that the CR is a red herring that there is
another problem.
(crystl32.ocx). The Crystal Reports are written in 8.5. The database
shuts down fine unless a Crystal Report has been opened. Then you
must CTRL-ALT-DEL to get out of Access. Any ideas why this is
happening and how to avert the problem?
The ocx is on a subform being called from a main form that is a
switchboard of sorts.
Here is the code I use:
************
CrystalReport3.ReportFileName = "c:\reportname.rpt"
CrystalReport3.Destination = 0
CrystalReport3.WindowState = 2
CrystalReport3.Action = 1
************
When I quit the database the form closes but the Access window is left
open and it cannot be closed without CTRL-ALT-DEL.
Do I need to somehow programmatically close the Crystal Report as in
CrystalReport3.Object = Nothing (which is not supported)
or something to that effect?
I have tried setting the recordset referenced to Nothing.
Access does seem to shut down okay if I open a different subform.
It has been suggested that the CR is a red herring that there is
another problem.