0
votes

I'm trying to append a table to another table, and I receive a key violation error.

"Microsoft Access can't append all the records in the append query. Microsoft Access set 0 field(s) to Null due to a type conversion failure, and it didn't add 26 record(s) to the table due to key violations, 0 record(s) due to lock violations, and 0 record(s) due to validation rule violations. DO you want to run the action query anyway?"

How can I tell Access where SPECIFICALLY these key violations are occurring? It's hard for me to scroll through this and resolve everything.

2
Need the table schemas and the query to even start giving you an answer. Should be easy to identify the bad guys though. - Tony Hopkinson

2 Answers

1
votes

you can detect the 26 conflicts with a simple inner join:

SELECT *
FROM tableA
   INNER JOIN tableB
      ON tableA.keyColumn = tableB.keyColumn
1
votes

If your able resides on SQL Server and you are accessing it via Access, you need to resync the link with link manager.

In some cases you need to set all columns to allow nulls as this error will show up after you resync the link.

I run into this a lot backtracking/legacy .txt files for impromptu reports.