I have just installed Office 2003 and Visual Studio Tools for Office 2003,
including the Developer Extensions for Access. I kept my Access 2000/MOD
installation intact (I hope), installed Access 2003 and upgraded all the
other Office apps. I have all updates/service packs installed including Jet
SP8. OS is XP Pro.
I have a repeatable situation where opening a report with code will cause
any mdb to crash every time. The following is one sample of code but ANY
code that opens ANY report in ANY mdb results in a crash under the
circumstances described below:
Dim stDocName As String
Dim boolSubs As Boolean
Me.Refresh
boolSubs = Me.Check55
DoCmd.Close
If boolSubs = True Then
stDocName = "rptWindows1"
Else
stDocName = "rptNoSubTotal"
End If
DoCmd.OpenReport stDocName, acPreview
Nothing too exotic here.
These are the steps that put the mdb in a state where the above code crashes
the app:
1.Open the mdb in Access 2003, compile under 2003 - code runs fine. Close
mdb
2.Open same mdb with Access 2000 after it has been compiled under 2003,
attempt to open report and Access crashes. Every time. Recompiling under
2000 either before or after trying open report does not help. Once its broke
recompiling doesn't fix it. Opening reports directly from the database
window does not cause the crash.
The only variation is sometimes just opening in 2003 then opening a report
with code in 2000 is enough to cause the crash. Compiling under 2003 causes
the problem every time but just opening with 2003 sometimes causes the mdb
to crash when subsequetly opening a report in 2000.
I see a description of my symptoms in an NG where the solution was to update
printer drivers. If that's the problem why would using code to preview a
report cause a crash while previewing from the db window doesn't?
I have tried this with several different mdbs, all developed under 2000 and
get the same results. So far it seems Access 2003 is harder to live with
than previous versions, but it always seems like that at first.
Anyone have similar experiences or comments?
Thanks for any comments or help.
Brent