MajP
You've got your good things, and you've got mine.
- Local time
- Today, 06:52
- Joined
- May 21, 2018
- Messages
- 9,508
If that is true that would concern me. If the PK went from incrementing to random that would hint to me the database is getting corrupted.I checked with the person who built it and for sure the numbers were used to be arranged in ascending order from 1
I would do the following.
1. As previously mentioned backup the existing PKs in a new field. Then you have them and can create a new PK and update all the old foreign keys.
2. Create a clean blank database
3. Import all your tables and compact and repair the new database. If it will not compact and repair then do the following first.
4. Create the new autonumber field.
5. Copy the old PK into the new field which is a number field (not autonumber)
6. Make your new autonumber field in 4 the PK.
7. Create update queries to make all the old FK linked to the new PK (come back if you need help)
8. Delete the old PK field
9. Import all the forms, reports, queries, and modules.
10. compact and repair