Primary Key start number

M

Mat

Hi

How can you set a primary key number (autonumber) to start
from a particular number - eg "10000"

I have invoices issued from an old accounts package - and
am creating a new database to replace it, but do not want
to duplicate old invoice numbers. I seem to remember in
the past a way of setting this but cant remember - any
help please ?

Thanks
 
J

Jeff Boyce

Mat

Using an autonumber as a value which humans will see is risky -- they
(autonumbers, not humans) are designed for use as a unique row identifier,
to help in relating tables. If you have a number (invoice number?) you wish
humans to see and understand, consider creating your own "custom autonumber"
(check this newsgroup, mvps.org, or Google.com for examples).

If you must carry on, despite these dire warnings, create an append query
that appends a single value to the autonumber field. If you want to start
after "10000", append that number. Then open the table and delete that row.
The next autonumber SHOULD be 10001 (but don't say I didn't warn you!).

Good luck!

Jeff Boyce
<Access MVP>
 

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

Similar Threads

Primary Key 1
Primary key to prevent duplicates 8
Allow Duplicates 20
Autonumber 0ne-One 25
Same invoice number- different country 3
How to normalize this data 1
One-to-one relationship 2
Primary Key Question 1

Top