Solved

Does auto-increment work reliably in Access 2010?

Posted on 2010-08-16
8
1,167 Views
Last Modified: 2012-05-10
In Access 2003 and 2007 auto-incremnt numbers can become corrupted.  See http://allenbrowne.com/ser-40.html and
http://support.microsoft.com/?id=884185

Can anyone tell me whether this has been fixed in Access 2010?   Is there an authoritative document, preferably from Microsoft, that tells whether this has been fixed?

Thanks!
0
Comment
Question by:anAppBuilder
8 Comments
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform) earned 100 total points
ID: 33449576
This is *EXTREMELY* rare ... and *not* something I would worry about.

mx
0
 
LVL 58

Assisted Solution

by:cyberkiwi
cyberkiwi earned 100 total points
ID: 33449654
If you take the first link as authoritative (since you posted it), read this in there

You may be able to solve the problem with a compact/repair:
    * In Access 2010:  Compact and Repair Database on the Database Tools ribbon.

What does that tell you?
The problem with the conditions of the issue like "linked tables" is that Access is not in total control.  As with any database system, it may crash and corrupt in any version.
0
 
LVL 75
ID: 33449761
Auto Numbers are a fact of life in Access database design, and have for the most part .... 99.99999999 % been extremely reliable since Access 1.0.

I would have zero fear of using Auto Numbers.

mx
0
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
LVL 57

Assisted Solution

by:Jim Dettman (Microsoft MVP/ EE MVE)
Jim Dettman (Microsoft MVP/ EE MVE) earned 100 total points
ID: 33449769
If your really that concerned with it failing, then you should use a key generation routine and assign your own key.  But as MX has said, this is extremely rare.  I cannot think of an instance yet were I've failed to get a proper key and I've been using Access since ver 1.1.
Heck, just look at the number of conditions from that MSKB article that you need in order to see it fail.
JimD.
0
 
LVL 22

Assisted Solution

by:dportas
dportas earned 100 total points
ID: 33453058
Apparently this is a problem with JET / ACE databases. If it's a problem to you then you could always use Access with SQL Server Express or some other DBMS instead. There are of course plenty of other more significant benefits to using another more powerful DBMS.
0
 
LVL 9

Assisted Solution

by:Armen Stein - Microsoft Access MVP since 2006
Armen Stein - Microsoft Access MVP since 2006 earned 100 total points
ID: 33455166
Although most of the Access applications we build for clients use a SQL Server back-end these days, when we do use an Access back-end we always use AutoNumber primary keys.  Over hundreds of systems since Access 2.0 we have never had a problem with them corrupting or duplicating.
0
 

Author Comment

by:anAppBuilder
ID: 33488404
thank you all
0
 

Author Closing Comment

by:anAppBuilder
ID: 33488432
Thank you!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question