AutoNumber

C

Cindy H

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.
 
K

Ken Snell [MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top