Group:  Microsoft Access ยป microsoft.public.access.reports
Thread: Report page numbers

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

Report page numbers
SB Mull 19.09.2006 03:28:02
I am compiling a booklet that consists of 5 different report designs - how do
I make the page numbers continuous instead of starting over with 1 for each
report?
--
Sandra
Re: Report page numbers
fredg <fgutkind[ at ]example.invalid> 19.09.2006 17:22:01
On Mon, 18 Sep 2006 20:28:02 -0700, SB Mull wrote:

[Quoted Text]
> I am compiling a booklet that consists of 5 different report designs - how do
> I make the page numbers continuous instead of starting over with 1 for each
> report.

Add a new table to your database.
Field Name 'LastPage' Number datatype, Field Size Integer
Table Name 'tblPageNumber'
Enter a Zero (0) as the first record's value.

Code the FIRST report's Open Event:

CurrentDb.Execute "Update tblPageNumber Set tblPageNumber.LastPage =
0" , dbFailOnError

Code the EACH Report's Close event:

CurrentDb.Execute "Update tblPageNumber Set tblPageNumber.LastPage = "
& Me.Page , dbFailOnError

Code the Report Header Format event (whether you use the report header
of not) of EACH OF THE OTHER reports:

Me.[Page] = DLookUp("[LastPage]","tblPageNumber") + 1

If you do not need the Report Header simply add under the above code:
Cancel = True

--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail

Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net