Solved

AutoNumber in Access 2010 breaks

Posted on 2011-02-15
17
1,503 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
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

943 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

6 Experts available now in Live!

Get 1:1 Help Now