A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

sequentally numbering records in a report



 
 
Thread Tools Display Modes
  #1  
Old January 8th, 2010, 08:11 PM posted to microsoft.public.access.reports
Paul
external usenet poster
 
Posts: 126
Default sequentally numbering records in a report

I would like to number the records in a report so that the first record is
number 1, and each subsequent record is incremented by 1. That is, 1, 2, 3,
etc.

I know how to run a loop in VBA, but I don't know how to use either the
Format or Print event of the report's Detail section to get the current
value of the incrementing variable into the detail section of the report.

What's the best way to sequentially number the records in a report?

Thanks in advance,

Paul


  #2  
Old January 8th, 2010, 08:30 PM posted to microsoft.public.access.reports
Marshall Barton
external usenet poster
 
Posts: 5,361
Default sequentally numbering records in a report

Paul wrote:

I would like to number the records in a report so that the first record is
number 1, and each subsequent record is incremented by 1. That is, 1, 2, 3,
etc.

I know how to run a loop in VBA, but I don't know how to use either the
Format or Print event of the report's Detail section to get the current
value of the incrementing variable into the detail section of the report.

What's the best way to sequentially number the records in a report?



No code needed. Just use a text box with the expression =1
and set it's RunningSum property to Over All

--
Marsh
MVP [MS Access]
  #3  
Old January 8th, 2010, 09:26 PM posted to microsoft.public.access.reports
Paul
external usenet poster
 
Posts: 126
Default sequentally numbering records in a report

Ooo, nice.

Thanks, Marsh.

P


"Marshall Barton" wrote in message
news
Paul wrote:

I would like to number the records in a report so that the first record is
number 1, and each subsequent record is incremented by 1. That is, 1, 2,
3,
etc.

I know how to run a loop in VBA, but I don't know how to use either the
Format or Print event of the report's Detail section to get the current
value of the incrementing variable into the detail section of the report.

What's the best way to sequentially number the records in a report?



No code needed. Just use a text box with the expression =1
and set it's RunningSum property to Over All

--
Marsh
MVP [MS Access]



 




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 Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:59 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.