Article ID: 209567 - Last Review: June 29, 2004 - Revision: 2.0 ACC2000: How to Print Line Number for Each Record/Group on ReportThis article was previously published under Q209567 Moderate: Requires basic macro, coding, and interoperability skills.
This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp). For a Microsoft Access 2002 version of this article, see 296246 (http://support.microsoft.com/kb/296246/EN-US/ ) . On This PageSUMMARY
You can add a text box control that prints a sequential number for each
record to the detail section of a report. You can reset this number so that a separate set of numbers is printed for each group of records. This
article explains how to do this by modifying a report in the sample
database Northwind.mdb.
NOTE: This article explains a technique demonstrated in the sample file, RptSmp00.mdb. For information about how to obtain this sample file, please see the following article in the Microsoft Knowledge Base: 231851
(http://support.microsoft.com/kb/231851/EN-US/
)
ACC2000: Microsoft Access 2000 Sample Reports Available in Download Center
MORE INFORMATIONPrinting a Sequential Number for Each Record to the Detail Section of a ReportIf you want to print an incremental counter for each record in a report group, add an unbound text box control to the detail section of the report. To begin the sequence with the number 1, set the ControlSource property to =1, and then set the RunningSum property to Over Group.To print an incremental counter for each record in a report group, follow these steps:
Resetting the NumberYou can also increment the counter number for each group in the report by changing the RunningSum property to Over All. To do this, replace step 2 above with the following step:Add the following text box control before the Category Name control in the Category Name Header section: Object: Text Box -------------------- Name: MyLineNumber2 ControlSource: =1 RunningSum: Over All
| Article Translations
|
Back to the top
