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.

Primary Key start number

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mat - 14 Jan 2005 10:43 GMT
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
Jeff Boyce - 14 Jan 2005 12:57 GMT
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>

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