ACC: How to Print a Line Number for Each Record or Group on Report (98790)
The information in this article applies to:
- Microsoft Access 1.0
- Microsoft Access 1.1
- Microsoft Access 2.0
- Microsoft Access for Windows 95 7.0
- Microsoft Access 97
This article was previously published under Q98790
Moderate: Requires basic macro, coding, and interoperability skills.
SUMMARY
You can add a text box control that prints a sequential number for each
record to the detail section of a report. This number can be reset so that
a separate set of numbers is printed for each group of records. This
article explains these procedures by modifying a report in the sample
database Northwind.mdb (or NWIND.MDB in Microsoft Access 2.0 or earlier).
NOTE: This article explains a technique demonstrated in the sample
files, RptSampl.exe (for Microsoft Access for Windows 95 version 7.0)
and RptSmp97.exe (for Microsoft Access 97). For information about how
to obtain these sample files, please see the following articles in the
Microsoft Knowledge Base:
145777 ACC95: Microsoft Access Sample Reports Available in Download Center
175072 ACC97: Microsoft Access 97 Sample Reports Available in Download Center
REFERENCES
For more information about printing an incremental counter for each
record in a report, search for "Calculated controls, reports," and then
"Number each detail record in a report" using the Microsoft Access 97
Help Index.
Modification Type: | Major | Last Reviewed: | 5/9/2003 |
---|
Keywords: | kbhowto KB98790 |
---|
|