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 / General 2 / June 2007

Tip: Looking for answers? Try searching our database.

Append Query

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Penny - 15 Jun 2007 21:42 GMT
I did an append query. Table A doesn't show any of the added records from
Table B, but the auto numbers jump from 1808 to 3038. Can I get rid of those
unseen records from 1809 to 3037.  My Table B is still the original one and
hasn't changed.  Is it possible to recover Table A before I tried the append
query?
--
Penny in Wisconsin
John W. Vinson - 15 Jun 2007 22:17 GMT
>I did an append query. Table A doesn't show any of the added records from
>Table B, but the auto numbers jump from 1808 to 3038. Can I get rid of those
>unseen records from 1809 to 3037.  My Table B is still the original one and
>hasn't changed.  Is it possible to recover Table A before I tried the append
>query?

Depending on the version of Access, you can delete the records above 1808 and
Compact the database.

However.... this is just in the nature of autonumbers. An autonumber has one
function, and one function ONLY: to provide a unique key. They are not
designed to be gapless; deleting a record, hitting <Esc> while entering a
record, or (as you have found) running an append query will "use up"
autonumber values and leave a gap. If you Replicate your database all
autonumbers will become random - 3037 might be followed by -1950038125 and
then by 418226453. Generally autonumbers should be kept "under the hood", used
for linking tables only and not exposed to the user. If you want
human-meaningful sequential numbers, use a Long Integer field and manage the
incrementing yourself in code.

            John W. Vinson [MVP]
 
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.