I have a table that uses AutoNumber in primary key field. There are no records in the table, I have deleted any records created while testing. I now need to start AutoNumbering from a specific number. I have copied the table structure, appended a record with the number previous to my start point into my temporary table and then appended this to my empty table.
I thought this would allow me to use AutoNumber and assign the next in sequence, apparently I was wrong! I still get numbers in sequence from the test records. Any thoughts?
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Auto Number start point (Access 2000)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Auto Number start point (Access 2000)
- This topic has 9 replies, 7 voices, and was last updated 23 years, 4 months ago.
AuthorTopicWSMarkBruner
AskWoody LoungerJanuary 23, 2002 at 9:36 pm #365859Viewing 4 reply threadsAuthorReplies-
WBell
AskWoody_MVPJanuary 23, 2002 at 9:44 pm #565613Compact and repair your database with no records in the table. If you have a record with the ID number one less than you want to start with, that process will reset the counter to give you the next number in seqence. Unfortunately you can’t specify the number you want to start with like you can in SQL Server.
-
WSClausParkhoi
AskWoody LoungerJanuary 23, 2002 at 9:45 pm #565614I’ll share my thoughts. Don’t use autonumbering if you want to control numbering. Using autonumbering means that you don’t care what the numbers are as long as they are unique, since that is what is needed for a primary key. Don’t show the user the autonumber on a form – it’s just an internal thing.
-
WSShane Sargent
AskWoody LoungerJanuary 23, 2002 at 9:45 pm #565615If you’d like it to restart the autonumbering at 1, with the table cleared of any records, choose to compact and repair the database.
However, if you’d like to begin at a number other than 1, or increment the autonumber value by something other than increments of 1, I believe you have to make use of the ADOX library.
-
WSMarkJ
AskWoody LoungerJanuary 24, 2002 at 12:41 am #565647Hi Mark,
I agree with Claus about not using AutoNumber for creating specific numbers in most cases – I use =DMax(“”,”
“) + 1
for creating an ID number that’s one higher than the last.
However, just for information, you can have AutoNumber start at a given value (such as 1000) by entering the start value in the Format field property (in the Table Design).
HTH
-
WSMarkBruner
AskWoody LoungerJanuary 24, 2002 at 8:38 pm #565890Thanks for the advice, as you can tell by my questions I am a new user and prone to making some bad decisions in database design. After viewing the posts I realize I have created a bit of a mess and need to change my design.
I have many tables (some populated with data) and relationships set up, how will changing these key fields affect the database? Am I in a “start-over” situation or can I create new key fields that are AutoNumbers and change my current key fields to Numbers? Any suggestions?
PS: where did you get the Indiana state flag, that’s pretty cool.
Thanks,
Mark
-
WScharlotte
AskWoody LoungerJanuary 24, 2002 at 5:07 am #565681I have to go on record as disagreeing with Claus and Mark on autonumbers. I use them extensively because they are not data, they are merely values that serve as keys. My users don’t see them and they are only used internally.
That said, there is NO reason to start an autonumber at a particular point. Compacting the database will reset the autonumber seed value in an empty table, just as Wendell and Shane have suggested. However, unless you have applied at least SR1 to your Office 2000 installation, appending a record to the autonumber field will *not* reset the seed for the next number. That was a bug in the initial version of Access 2000 that was cured by the service release.
-
WBell
AskWoody_MVPJanuary 24, 2002 at 2:25 pm #565763I’ll side with Charlotte on this as well. In particular, the technique Mark uses can create race conditions where you end up with duplicate key errors because somebody started an insert, got interrupted (or just typed slower than the other person), and another person adds a record before the other person finishes. IF you insist on controlling the numbering, you should add a table which contains the next record number available, do an update on it with edit locks to increment it by one, and then use the number to key your record with. But it’s lots more work than an autonumber.
-
WSMarkJ
AskWoody LoungerJanuary 24, 2002 at 4:34 pm #565797It’s almost lunchtime and I’m so hungry I could eat my words!
On second thought, I agree with Wendell and Charlotte.
The technique I mentioned will only work with Single-user situations. A better solution would be to have an Autonumber field for the Primary Key, then use the DMax formula as the default value for a different “ID” field (such as Invoice Number, etc.).
-
WSrory
AskWoody LoungerViewing 4 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Install Office 365 Outlook classic on new Win11 machine (Awaiting moderation)
by
WSrcull999
1 hour, 25 minutes ago -
Install Office 365 Outlook classic on new Win11 machine (Awaiting moderation)
by
WSrcull999
1 hour, 32 minutes ago -
re-install Windows Security
by
CWBillow
2 hours, 7 minutes ago -
WWDC 2025 Recap: All of Apple’s NEW Features in 10 Minutes!
by
Alex5723
3 hours, 27 minutes ago -
macOS Tahoe 26
by
Alex5723
46 minutes ago -
Migrating from win10 to win11, instructions coming?
by
astro46
4 hours, 39 minutes ago -
Device Eligibility for Apple 2026 Operating Systems due this Fall
by
PKCano
4 hours, 13 minutes ago -
Recommended watching : Mountainhead movie
by
Alex5723
16 hours, 59 minutes ago -
End of support for Windows 10
by
Old enough to know better
2 hours, 21 minutes ago -
What goes on inside an LLM
by
Michael Covington
1 hour, 25 minutes ago -
The risk of remote access
by
Susan Bradley
7 hours, 4 minutes ago -
The cruelest month for many Office users
by
Peter Deegan
13 hours, 37 minutes ago -
Tracking protection and trade-offs in Edge
by
Mary Branscombe
19 hours, 13 minutes ago -
Supreme Court grants DOGE access to confidential Social Security records
by
Alex5723
1 day, 1 hour ago -
EaseUS Partition Master free 19.6
by
Alex5723
2 hours, 28 minutes ago -
Microsoft : Edge is better than Chrome
by
Alex5723
1 day, 15 hours ago -
The EU launched DNS4EU
by
Alex5723
2 days, 3 hours ago -
Cell Phone vs. Traditional Touchtone Phone over POTS
by
280park
1 day, 18 hours ago -
Lost access to all my networked drives (shares) listed in My Computer
by
lwerman
2 days, 9 hours ago -
Set default size for pasted photo to word
by
Cyn
2 days, 15 hours ago -
Dedoimedo tries 24H2…
by
Cybertooth
2 days, 3 hours ago -
Windows 11 Insider Preview build 27871 released to Canary
by
joep517
3 days, 14 hours ago -
Windows 11 ad from Campaign Manager in Windows 10
by
Jim McKenna
1 day, 7 hours ago -
Small desktops
by
Susan Bradley
7 hours, 46 minutes ago -
Totally disable Bitlocker
by
CWBillow
2 days, 7 hours ago -
Phishers extract Millions from HMRC accounts..
by
Microfix
3 days, 11 hours ago -
Windows 10 22H2 Update today (5 June) says up-to-date but last was 2025-04
by
Alan_uk
4 days, 18 hours ago -
Thoughts on Malwarebytes Scam Guard for Mobile?
by
opti1
2 days, 12 hours ago -
Mystical Desktop
by
CWBillow
4 days, 21 hours ago -
Meta and Yandex secretly tracked billions of Android users
by
Alex5723
4 days, 2 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.