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 2005

Tip: Looking for answers? Try searching our database.

AutoNumber

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Cindy H - 27 Jan 2005 23:35 GMT
Hi,

I'm designing a new table to replace an existing table that is populated
with data for the current application.  The old table uses an AutoNumber for
its primary key.  I would like the new table to also use an AutoNumber for
this key.  How can it preserve the existing data in the key field and get
the AutoNumber in the new table to continue incrementing after the last
number imported from the old table.  AutoNumber does not seem to like having
any existing numbers.  Is there some technique for preserving the existing
sequence of numbers and still use AutoNumber in the new table?

Thanks, Cindy H.
Ken Snell [MVP] - 28 Jan 2005 01:29 GMT
You should be able to do this by running an append query to copy the data
into that table, including the autonumber field (use the autonumber field
from the original table as the source field), and then the table's
autonumber sequence should pick up from the last number in the autonumber
field.

Signature

       Ken Snell
<MS ACCESS MVP>

> Hi,
>
[quoted text clipped - 8 lines]
>
> Thanks, Cindy H.
 
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.