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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Force new page using VBA 1

Status
Not open for further replies.

cglisc

Programmer
Nov 15, 2001
45
CY
Howdy,

I have to built a report that has a detail section that
must always print 20 lines. So if the record count is
5, print the 5 records, and then print 15 blank lines.
Using code from I was able to do this.

However, if the number of records to print is more than 20,
then I should print the first 20 records, print the page
footer and then continue on the next page. How do I do
this?

Thank you for your help.
Chris.
 
Did something similar not too long ago.....

put a page break at the bottom of the report. Set the visible property to false. In the Format of the details start a running count. When cout = 20, make page break visible. Then using the report header OnFormat, set the page break visible back to no.

Please remember to give helpful posts the stars they deserve!
This makes the post more visible to others in need! [thumbsup2]

Robert L. Johnson III, A+, Network+, MCP
Access Developer/Programmer
robert.l.johnson.iii@citigroup.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top