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

Table Record Autonumber 2

Status
Not open for further replies.

uconn1981

Programmer
Mar 21, 2005
42
US
Hi, All:

I have a Table with autonumber field. If i deleted some records, how can i reorder the autonumber field? The Access does not automatically do that. For example, originally I have records from 1 to 20. If i delete record number 3 and 4, the autonumber field will not reorder the number 5 and 6 to 3 and 4 and so on.

Thanks,

Tim

 
An autonumber field should not have any other meaning than to be unique.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
There is no facility to resequence autonumbers other than to restart them at 1 by deleting all the records in the table and then compacting the database.

If you want to have the ability to resequence numbers then you will need to generate your own numbers and write code to do the resequencing.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top