Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

re-number rows in a report 3

Status
Not open for further replies.

ouradmin

IS-IT--Management
Sep 30, 2004
9
US
I have a report that needs the rows numbered 1-10. On each page the rows are numbered 1-10. The report will be multiple pages. How do I get the report to number the rows and then reset the numbering on the subsequent pages?
 
On each page the rows are numbered 1-10

What are "rows" on your report? What is incrementing this number?

Knowledge is knowing a tomato is a fruit; Wisdom is not putting it in a fruit salad.
 
the detail of the report is reporting selected records from one of my tables. This is a government form that it needs to be reported on and they only want 10 records to show on each page. they need to be numbered from 1 to 10 and then start at 1 again on each of the subsequent pages.
 
What code or control is numbering them 1 to 10?

Knowledge is knowing a tomato is a fruit; Wisdom is not putting it in a fruit salad.
 
Right now I have a text box with a control of =1 and running sum set to overall. All of my records are in one group so I can't reset it using the overgroup option.
 
Hide your existing text box and add another. Assuming your current text box is named txtRunSum, the new text box would have a control source of:

=[txtRunSum] Mod 10+IIf([txtRunSum] Mod 10=0,10,0)

Duane MS Access MVP
Now help me support United Cerebral Palsy
 
Can you add a different unbound text box to display line numbers? You could place a counter in the detail print event, populate the text box, and reset the counter in the report page event....

Knowledge is knowing a tomato is a fruit; Wisdom is not putting it in a fruit salad.
 
THANK YOU THANK YOU THANK YOU!!!!!!

Now I can get this monkey off my back.
 
Dang! As usual, Duane comes up with the "right" (and elegant) method. I hereby bestoweth a coveted star...

Knowledge is knowing a tomato is a fruit; Wisdom is not putting it in a fruit salad.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top