Solved

AutoNumber in Access 2010 breaks

Posted on 2011-02-15
17
1,502 Views
Last Modified: 2012-05-11
MS Access split application (.mde, .mdb)
300 sites
5 year history
Includes a table which has a field which is the Primary key and is AutoNumber data type.
Just 3 sites running on MS Access 2010.  All using .mdb vs .accdb file format.
One site only is experiencing dysfunction of the AutoNumber field. Ie. It does not try to use the next available value. It tries to use a previously used value causing error of ‘duplicate value in index’.
We have reset the value AutoNumber attempts to use successfully. Unfortunately, the problem recurs after a week or so of use.
Is this a known problem with MS Access 2010? I do not find this as reported problem.
0
Comment
Question by:slgoetze
  • 8
  • 8
17 Comments
 
LVL 75
ID: 34902412
"We have reset the value AutoNumber attempts to use successfully. "
How are you doing the reset?

"Is this a known problem with MS Access 2010"
Not that I have heard of.

Can I assume you have done a Compact & Repair on the db ?

mx
0
 

Author Comment

by:slgoetze
ID: 34902499
Thanks for the response.
What we do to reset:
1. remove relationships
2. ALTER TABLE Activity ALTER COLUMN SeqNo COUNTER(somevalue,1);
3. add back relationships
4. compact and repair
The above is successful and the db is ok for a week or two then breaks again.
0
 
LVL 75
ID: 34902549
I have no definitive answer per se.
My suggestion is ... Import all objects (just tables I assume in BE) into a new blank mdb... and try that.

Seems this db has some sort of corruption going on in this particular mdb.

mx
0
 

Author Comment

by:slgoetze
ID: 34902720
Thanks. Must be something ugly in it. Unfortunately, it will appear fixed then 'break' again in a week or two.
0
 
LVL 75
ID: 34902733
The Import of BE into a new container should be quick to try .... ?

mx
0
 

Author Comment

by:slgoetze
ID: 34902809
Unfortunately, it will appear fixed then 'break' again in a week or two.
0
 
LVL 75
ID: 34902815
Have you already tried this ?

If not ... it could easily fix the issue.  db Containers do become corrupt.

mx
0
 

Author Comment

by:slgoetze
ID: 34902962
No mx, we have not performed this.
Do you have a link of steps. Have not done this in a long time.
Relationships, Table Definition and Data, right?
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 44

Expert Comment

by:GRayL
ID: 34902999
Listen to him.  Create a new database.  Make it the current database.  Click File, Get External Data, and import all the Objects from the old database into the new database.
0
 
LVL 75
ID: 34903007
Create a blank MDB, then pretty much the steps below ....

mx
Capture1.gif
Capture2.gif
Capture3.gif
0
 

Author Comment

by:slgoetze
ID: 34903011
Thanks mx.
0
 
LVL 75
ID: 34903018
Good luck.  Report back on results please.

mx
0
 

Author Comment

by:slgoetze
ID: 34903023
We will get the .mdb from the site and try.
0
 

Author Comment

by:slgoetze
ID: 34903029
May be a few days...
0
 
LVL 75
ID: 35875209
Has this question been resolved?  Can we close the question ?

thx.mx
0
 

Author Comment

by:slgoetze
ID: 35878958
yes
0
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Access MVP) earned 250 total points
ID: 35879979
Can you please Accept an answer and close the question ...

thx.mx
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now