Srome
05-08-2008, 01:41 PM
I have several groupings of reports (3 to 5 related reports generated from a click event) which worked ok when they went directly to a printer;
but when I changed the them to use acViewPreview so that reports can be checked prior to printing, one or more of them would close(as if Esc had been pressed) on there own after being generated. Also, if a break point were set and execution is single stepped the reports created the previews ok.
Code sample:
DoCmd.OpenReport "rptOldMonthTax1", acViewPreview
DoCmd.OpenReport "rptOldMonthTax2", acViewPreview
DoCmd.OpenReport "rptOldMonthTax3", acViewPreview
Environment:
Access 2000 (9.08948 sp-3)
Win2000 Pro 5.0.2195 sp 4 build 2195
Pentium4 3gh
but when I changed the them to use acViewPreview so that reports can be checked prior to printing, one or more of them would close(as if Esc had been pressed) on there own after being generated. Also, if a break point were set and execution is single stepped the reports created the previews ok.
Code sample:
DoCmd.OpenReport "rptOldMonthTax1", acViewPreview
DoCmd.OpenReport "rptOldMonthTax2", acViewPreview
DoCmd.OpenReport "rptOldMonthTax3", acViewPreview
Environment:
Access 2000 (9.08948 sp-3)
Win2000 Pro 5.0.2195 sp 4 build 2195
Pentium4 3gh