I’m trying to get some data from one (temporary) table to another using an append query but I’m getting a key violation error.
The primary key in the table I want to append to is a composite key, comprising a field called GISURN (text) plus a field called ID (long integer – not auto).
My temporary table has the same key structure.
The GISURN field forms the many end of a one-to-many relationship with a parent table – I have checked and all the values for this field exist in the parent table.
No other tables have a relationship with the table I want to append to.
I don’t understand why I’m getting a key violation error when I try to run the query, any ideas?
Edit: I have just read the message more clearly, it didn’t want to add 116 or 119 records so I ran it to see which ones it would add. I then tried to run it again and it didn’t want to add 116 or 119 records. I ran it again and it added another 3 records. Once again for luck, similar message, thought ‘115’ this time – it added 4 records.
I’m really confused now!