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 / Database Design / January 2004

Tip: Looking for answers? Try searching our database.

compacting autonumber field

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
- 11 Jan 2004 16:17 GMT
In my Autonumber fileds there some gaps between numbers - probably because
of deleted records - how do I compact the table? The database
utility-compact does not do this
Cheryl Fischer - 11 Jan 2004 16:52 GMT
Once used, an AutoNumber value is not used again, and the Compact/Repair
utility was not designed nor intended to restore them.

If you must reset your AutoNumber values, do a search at
http://groups.google.com  using    reset autonumber field    as a search
criterion.  You will get at least 2000 'hits'  on the subject.

--
Cheryl Fischer
Law/Sys Associates
> In my Autonumber fileds there some gaps between numbers - probably because
> of deleted records - how do I compact the table? The database
> utility-compact does not do this
Duane Hookom - 11 Jan 2004 18:03 GMT
Cheryl is correct. I would add that you should consider not ever showing the
autonumber to users so it doesn't make any difference what an autonumber
value contains. I never use the autonumber for any reason other than to
create a unique identifier for a record.

Signature

Duane Hookom
MS Access MVP

> Once used, an AutoNumber value is not used again, and the Compact/Repair
> utility was not designed nor intended to restore them.
[quoted text clipped - 9 lines]
> > of deleted records - how do I compact the table? The database
> > utility-compact does not do this
 
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.