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

Can page numbering continue on different reports? 1

Status
Not open for further replies.

biggoober

Programmer
Oct 3, 2001
22
US
I have 7 reports I would like to run in sequence, and have the page numbers continue acroos the reports (i.e If the first report is one page long, I would like the second report to start with page 2)

I have had some luck in putting a routine in the page footer, that opens a table and reads the number uses it as the page number then increments the number, The first report in the series initializes the number.
But when I try to run them all in sequence, the numbering gets confused.

Any suggestions?
 
Set a global variable in a module to hold the current page number, e.g.

Global intCurPage as Integer

Set the intCurPage value to zero before printing the first report and then increment it by the number of pages in report 1. Use intCurPage as the starting page number in Report 2, etc. You get the idea.


Cheers,

Uncle jack
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top