This is an A2K3 application with tables linked to a SQL Server 9.0 back end. Here is the problem:
When I run these 2 queries, the 1st one is successful, the 2nd one fails:
qryAppend_to_TableA: successful
qryAppend_to_TableB: fails
The error is "Access can't append all the records in the append query .. 13 record(s) to the table due to key violations"
If I reopen the application, qryAppend_to_TableB runs successfully without error.
If I reverse the order, the same same thing:
qryAppend_to_TableB: successful
qryAppend_to_TableA: fails
The error is "Access can't append all the records in the append query .. 50 record(s) to the table due to key violations"
If I reopen the application, qryAppend_to_TableA runs successfully without error.
Does anyone know what causes this and, more importantly, how to fix it? I will have a whole bunch of these action queries and do not want to reopen the mdb to run each one. I don’t own this application and converting it to a different
format or not using linked tables is not an option. Thank you