isladogs
MVP / VIP
- Local time
- Today, 00:10
- Joined
- Jan 14, 2017
- Messages
- 18,510
Here's a little puzzle for anyone interested
Some time ago I read an article by Allen Browne about autonumbers repeating:
Fixing AutoNumbers when Access assigns negatives or duplicates
However I'd never seen any of the behaviour he described until now
Attached is a single table database with an autonumber field. It has 6 records.
If you try and add a record it will restart the autonumber seed at 1
Of course it won't allow you to save the record as its a duplicate
Ditto for the next 5 records you try & append until you get to ID=7
I've attached the database for anyone interested to try for themselves.
I know exactly how I did it unintentionally & can replicate it easily
None of the explanations on Allen's site match what I did.
Lets see how long it takes anyone to work out what I did to cause this!
EDIT: 12/01/2019
Oops - I uploaded the wrong file yesterday - that one worked properly!
New version uploaded which does have the autonumber gremlins
Some time ago I read an article by Allen Browne about autonumbers repeating:
Fixing AutoNumbers when Access assigns negatives or duplicates
However I'd never seen any of the behaviour he described until now
Attached is a single table database with an autonumber field. It has 6 records.
If you try and add a record it will restart the autonumber seed at 1
Of course it won't allow you to save the record as its a duplicate
Ditto for the next 5 records you try & append until you get to ID=7
I've attached the database for anyone interested to try for themselves.
I know exactly how I did it unintentionally & can replicate it easily
None of the explanations on Allen's site match what I did.
Lets see how long it takes anyone to work out what I did to cause this!
EDIT: 12/01/2019
Oops - I uploaded the wrong file yesterday - that one worked properly!
New version uploaded which does have the autonumber gremlins
Attachments
Last edited: