Solved

How do i create running serial number in Reports

Posted on 2004-04-25
3
334 Views
Last Modified: 2006-11-17
Hi,
I have database with all the company's employees particulars and details inside.
When printing reports, i would like a 'Serial No.' column for each employee which runs consecutively from one employee to another. This serial no. need not be in the 'table' because i only need it to appear in my report.

I tried using the 'Auto-Number' function but the serial no. column does not run consecutively if i delete one of the employees record. It would go like ...

1.
2.
3.
5.
6.

In this case, the serial no. '4.' is deleted as the employee that had the serial no. '4' assigned to it using the auto-number function has been removed from the database. Really hope u all could help me in this.

Thank You.
0
Comment
Question by:k_adli
  • 2
3 Comments
 
LVL 54

Accepted Solution

by:
nico5038 earned 150 total points
ID: 10911509
Just place a new field and enter in the datasource (c.q. directly in the field):
=1
Now goto the properties and set the "Running sum" property to "Yes"

Clear ?

Nic;o)
0
 

Author Comment

by:k_adli
ID: 10914262
Thanx. Didn't know it was that easy
0
 
LVL 54

Expert Comment

by:nico5038
ID: 10915783
Took me a a lot of time to find out this was the easy way <LOL>.

Success with the application !

Nic;o)
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
In Debugging – Part 1, you learned the basics of the debugging process. You learned how to avoid bugs, as well as how to utilize the Immediate window in the debugging process. This article takes things to the next level by showing you how you can us…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now