Katie Mitchell
New member
- Local time
- Today, 07:13
- Joined
- Jul 21, 2011
- Messages
- 2
I have experienced this same problem after moving to Access 2010 from 2003. After compact and repair, the autonumber field would get reseeded to an already used number, making additions to the table impossible because the autonumber field is set to unique values only.
The autonumber field is not the primary key in my table. If I experimentally made the autonumber field the primary key, the field behaved normally after compact and repair. I think this is probably a bug in Access 2010.
Did you find a permanent fix for your problem? My understanding and experience is that even when you reseed the autonumber to an appropriate number, it gets reseeded inappropriately by compact and repair. Since compact and repair needs to be performed regularly on an Access database, this is a serious problem.
To fix my problem, I am going to change my autonumber to a long integer data type, and make the forms that insert records into my table increment the value.
The autonumber field is not the primary key in my table. If I experimentally made the autonumber field the primary key, the field behaved normally after compact and repair. I think this is probably a bug in Access 2010.
Did you find a permanent fix for your problem? My understanding and experience is that even when you reseed the autonumber to an appropriate number, it gets reseeded inappropriately by compact and repair. Since compact and repair needs to be performed regularly on an Access database, this is a serious problem.
To fix my problem, I am going to change my autonumber to a long integer data type, and make the forms that insert records into my table increment the value.