Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / New Users / July 2006

Tip: Looking for answers? Try searching our database.

How do you renumber a field that is set to autonumber?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Detwiler - 04 Jul 2006 20:00 GMT
Each record in my database is numbered consecutively using the autonumber
feature. I needed to delete one of the files, however, and now want to assign
the deleted number to another record. Is this possible?
Douglas J Steele - 04 Jul 2006 20:04 GMT
No, it's not.

Autonumbers exist for one purpose only: to provide a (practically
guaranteed) unique value that can be used as a primary key. Gaps in the
numbering do not affect that purpose.

If the value of the field is important to you, you probably shouldn't be
using an Autonumber field. As you've discovered, they are not guaranteed to
be gap-free. In fact, it's unusual to even show the value of the field to
users.

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

> Each record in my database is numbered consecutively using the autonumber
> feature. I needed to delete one of the files, however, and now want to assign
> the deleted number to another record. Is this possible?
Steve Schapel - 04 Jul 2006 21:06 GMT
Detwiler,

Yes, you can use an Append Query to add a record to the table with the
"missing" number.

Signature

Steve Schapel, Microsoft Access MVP

> Each record in my database is numbered consecutively using the autonumber
> feature. I needed to delete one of the files, however, and now want to assign
> the deleted number to another record. Is this possible?
Terry Kreft - 05 Jul 2006 15:27 GMT
... but see Doug Steeles comments as to why if you "need" to do this then
you are using the autonumber field for th wrong reasosns.

Signature

Terry Kreft

> Detwiler,
>
[quoted text clipped - 4 lines]
> > feature. I needed to delete one of the files, however, and now want to assign
> > the deleted number to another record. Is this possible?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.