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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

numbering records in a query

Status
Not open for further replies.

choppysuey

Technical User
Joined
Mar 28, 2001
Messages
54
Location
US
Hope this is the right forum to ask this question. I'm trying to write a simple query based upon a single table and all I want is an extra column in the query that numbers the records in the query starting with 1 and ending with the number of records in the query. i.e if four records in the query then:
RecordNum SampleID Date
1 ...
2
3
4

I've tried using the count and sum function in the query but can't get it to work. Any hints?

Thanks in advance.
 
See faq in the query forum: faq701-1155

Greg
"Personally, I am always ready to learn, although I do not always like being taught." - Winston Churchill
 
Since this is a reports forum, add a text box to your report's detail section:

Control Source: =1
Running Sum: Over All


Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top