My user, in his infinite wisdom, after many warnings about why he should not delete records, has seen fit to have someone on his staff delete records where the autonumber field is used as a foreign key.
I have the records in a backup of my data.mdb, is there any way I can import only some records from the old mdb into the current mdb to get those autonumbered records "restored"?
TIA
Replace Autonumber(ed) record
-
- 2StarLounger
- Posts: 125
- Joined: 17 Feb 2010, 16:25
Replace Autonumber(ed) record
PaulW
Lost Wages, NV USA
(former Cobol Programmer)
Lost Wages, NV USA
(former Cobol Programmer)
-
- Administrator
- Posts: 78415
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Replace Autonumber(ed) record
If you create an append query and include the AutoNumber field, you can add the records from the backup table to the production table while preserving the AutoNumber values.
BTW, if you set Enforce Referential Integrity for a relationship, users won't be able to delete "parent" records as long as there are "child" records, so that it's impossible to leave "orphans".
BTW, if you set Enforce Referential Integrity for a relationship, users won't be able to delete "parent" records as long as there are "child" records, so that it's impossible to leave "orphans".
You do not have the required permissions to view the files attached to this post.
Best wishes,
Hans
Hans
-
- 2StarLounger
- Posts: 125
- Joined: 17 Feb 2010, 16:25
Re: Replace Autonumber(ed) record
Hans,
Again thank you so much. I did not use referential integrity because I didn't trust Access 2003 when I wrote the system.
Again thank you so much. I did not use referential integrity because I didn't trust Access 2003 when I wrote the system.
PaulW
Lost Wages, NV USA
(former Cobol Programmer)
Lost Wages, NV USA
(former Cobol Programmer)