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

Query that creates autonumber ID field

Status
Not open for further replies.

CharlesH

Technical User
Apr 9, 2002
6
US
Besides creating a new table and choosing the autonumber field, how do I create a query field that adds an ID number that automatically numbers itself (from 1,2,3,4,etc), when I query a table.

For example, I have a table with one field

Names
------
John
Frank
Larry

How do I create a query that numbers each record automatically? The query would be as follows:

ID Names
-- -----
1 John
2 Frank
3 Larry

Thanks for your attention.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top