jwcolby54
Member
- Local time
- Today, 16:26
- Joined
- May 19, 2025
- Messages
- 237
@GPGeorge can you test what happens if you add a single record into a multi record hole? IOW delete 5 records, then fill in the first hole, then add another record manually. IIRC the autonumber picks up after your append and adds one to whatever that PK you just placed in with a query.Here's a simple illustration of the method with one table and one append query.
PK:
01 to 100 exists
101-105 are a hole
106 - 110 exists.
Use your query to add 101 into the hole. Add a new record allowing the autonumber to do whatever it wants. What is the autonumber value it places into the table? Is it 102, the number after yours? Or is it 111, the number it would have been if you had not inserted your record?
I seem to remember that it adds 102, 103, 104 and 105. When it runs into 106, it "jumps" to the last (highest) value plus 1. In this case it would go from 105 to 111.
Is that clear as mud? I haven't actually done any of this for 15 years so maybe my memory is hazy.