Link to home
Start Free TrialLog in
Avatar of slgoetze
slgoetze

asked on

AutoNumber in Access 2010 breaks

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.
Avatar of DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
Flag of United States of America image

"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
Avatar of slgoetze
slgoetze

ASKER

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.
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
Thanks. Must be something ugly in it. Unfortunately, it will appear fixed then 'break' again in a week or two.
The Import of BE into a new container should be quick to try .... ?

mx
Unfortunately, it will appear fixed then 'break' again in a week or two.
Have you already tried this ?

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

mx
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?
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.
Create a blank MDB, then pretty much the steps below ....

mx
Capture1.gif
Capture2.gif
Capture3.gif
Thanks mx.
Good luck.  Report back on results please.

mx
We will get the .mdb from the site and try.
May be a few days...
Has this question been resolved?  Can we close the question ?

thx.mx
yes
ASKER CERTIFIED SOLUTION
Avatar of DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial