Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Use VBA to force Page break in Report

Status
Not open for further replies.

paxelius

Programmer
Jan 21, 2004
22
NO

On my report, I've programmed lots of arrays to be displayed using VBA Print method.

My problem is that the my printout of the arrays just disappears under the 'physical' page in the report on screen. When I flip to the next page, the exact same array listing is displayed as on the previous page.

I've printed the arrays under Private Sub Report_Page(), maybe I need to make a different approach ?

I need to have this report up and working tomorrow, hope someone can help me in time.

Thanks you!

-Aeron Pax
 
Lets not get caught up in the infamouse 'force page break' terminology here. Imagine I don't need a page break, but to control at some point in VBA that the rest of my array listings should print on a new page, how can we do this ?

-Aeron Pax
 
Does the report have any record source? Have you tried setting a variable that contains where you left off printing your array? As a kludge, you could consider writing your array to a temporary table and then just binding the table into the report's record source or into a subreport's record source.

Duane
MS Access MVP
Find out how to get great answers faq219-2884.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top