houseofturner
Registered User.
- Local time
- Today, 21:20
- Joined
- Dec 10, 2009
- Messages
- 37
I have a series of 14 reports which I need to preview and then print.
Rather than do them one at a time I would like to open them all in preview mode at the click of the button.
All the reports preview fine if run one at a time or in batches of 3 or 4. However if I run a batch of 14 it always crashes and says database needs to close and asks if I want it repaired (which makes no difference).
The code I am using is shows below - any ideas> please!!!
DoCmd.OpenReport "Report1", acViewPreview
DoCmd.OpenReport "Report2", acViewPreview
DoCmd.OpenReport "Report3", acViewPreview
DoCmd.OpenReport "Report4", acViewPreview
DoCmd.OpenReport "Report5", acViewPreview
DoCmd.OpenReport "Report6", acViewPreview
DoCmd.OpenReport "Report7", acViewPreview
DoCmd.OpenReport "Report8", acViewPreview
DoCmd.OpenReport "Report9", acViewPreview
DoCmd.OpenReport "Report10", acViewPreview
DoCmd.OpenReport "Report11", acViewPreview
DoCmd.OpenReport "Report12", acViewPreview
DoCmd.OpenReport "Report13", acViewPreview
DoCmd.OpenReport "Report14", acViewPreview
MsgBox "All Reports Have Been Generated", vbOKOnly + vbInformation, "Management Info Pack"
Rather than do them one at a time I would like to open them all in preview mode at the click of the button.
All the reports preview fine if run one at a time or in batches of 3 or 4. However if I run a batch of 14 it always crashes and says database needs to close and asks if I want it repaired (which makes no difference).
The code I am using is shows below - any ideas> please!!!
DoCmd.OpenReport "Report1", acViewPreview
DoCmd.OpenReport "Report2", acViewPreview
DoCmd.OpenReport "Report3", acViewPreview
DoCmd.OpenReport "Report4", acViewPreview
DoCmd.OpenReport "Report5", acViewPreview
DoCmd.OpenReport "Report6", acViewPreview
DoCmd.OpenReport "Report7", acViewPreview
DoCmd.OpenReport "Report8", acViewPreview
DoCmd.OpenReport "Report9", acViewPreview
DoCmd.OpenReport "Report10", acViewPreview
DoCmd.OpenReport "Report11", acViewPreview
DoCmd.OpenReport "Report12", acViewPreview
DoCmd.OpenReport "Report13", acViewPreview
DoCmd.OpenReport "Report14", acViewPreview
MsgBox "All Reports Have Been Generated", vbOKOnly + vbInformation, "Management Info Pack"