Database crashes upon report print command

cath_hopes

Registered User.
Local time
Today, 10:12
Joined
Oct 17, 2007
Messages
52
Bit of an ugly one this!
I'm using Access 2007 and am wondering whether this is a bug or something I've done ... anyway I did notice that the preview content did not match the printed content.
When Access crashes it prompts me to send a lengthy error report to Microsoft and then offers the option of creating a backup of my database before reopening.
This crashing/ instability problem does not occur when I remove the acPreview from the following line of code:

DoCmd.OpenReport strDocName, acPreview, , strWhere

to give:

DoCmd.OpenReport strDocName, , , strWhere

Has anyone else come across this?
 

Users who are viewing this thread

Back
Top Bottom