Report Previews Fine, Doesn't Print

M

Mike Dwyer

Ok, this is a wierd one...
I have a report and I'm using Access XP. The report previews fine but
when you click the print button, it either doesn't print or prints
just the first page. However, if you preview it all the way to the
last page, it will then print out fine.

Here's the structure:
I have a master report that contains one subreport. The subreport is
set up to print columns (like mailing labels, only there are only 3
columns/page). There is code in the detail print event of the
subreport that sets the detail section visible property to true or
false, depending on conditions.

As a test, the report I use is a two-page report.

If I go into Print Preview and only look at the first page, clicking
the Print button will either print nothing or print just the first
page.

If I go into Print Preview and actually preview page 1 and 2, clicking
the Print button will print the entire two pages.

Figuring this had something with code that was run on page 2, I added
a control to the page header of the main report that refers to the
"Pages" property of the report. This causes the whole report to be
processed prior to printing the first page. When I do this, printing
from Print Preview while looking at only page 1 will work ok.


Any ideas what could be going wrong?
 
Top