dbTalk Databases Forums  

How to count the number of records per page on an Access Report?

comp.database.ms-access comp.database.ms-access


Discuss How to count the number of records per page on an Access Report? in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Arthur Cheung
 
Posts: n/a

Default How to count the number of records per page on an Access Report? - 07-30-2004 , 03:59 AM






Dear All,

How to count the number of records per page per report? (I am using Access
2000).

Thank you very much.



Arthur Cheung



Reply With Quote
  #2  
Old   
Carol and Doug Hutcheson
 
Posts: n/a

Default Re: How to count the number of records per page on an Access Report? - 08-10-2004 , 12:18 AM






Arthur,

Do you want to know the answer before you print the report, or do you
want to put a record count at the bottom (or top) of each page?
If the former, you are on your own: if the latter, try declaring a
variable intRecs as Integer in the report code module, them zero it
whenever the page header is printed, add one to it on each 'OnPrint'
event for the section containing the record detail you are tracking and
subtract one from it in each 'OnRetreat' event fore the same section. By
the end of the page, intRecs will contain the number of records
successfully rendered on the page and you can print this in a control in
the page footer.

Just my $0.02

Doug


Arthur Cheung wrote:
Quote:
Dear All,

How to count the number of records per page per report? (I am using Access
2000).

Thank you very much.



Arthur Cheung




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.