I am currently using the append query method to update a table from one database to another. My question is, I would like to find a way to display and capture the records that were not updated due to key violations? The key violations occur due to enforcement of referential integrity. I am updating a table on the many side of the one to many relationship. I would like to retrieve this information so that i can correct the table on the one side of the relationship. In example below i am using the append query to update table2. My errors occur if i am trying to append records in which the recieving ID is not present in Table1. I would like to capture these records somehow so that i can update or fix the errors in table1 with the missing Recieving ID.
Table1: 1 side of relationship
Sample barcode: primary key
Recieving ID: Indexed, no duplicates, required
Table2: many side of relationship,
MillTrackingID: primary key
Recieving ID: Foreign key, required
Thanks,
Tim
Table1: 1 side of relationship
Sample barcode: primary key
Recieving ID: Indexed, no duplicates, required
Table2: many side of relationship,
MillTrackingID: primary key
Recieving ID: Foreign key, required
Thanks,
Tim