key violations (1 Viewer)

pcEars

qryNot_Quite_StoopID
Local time
Yesterday, 19:44
Joined
Jun 12, 2003
Messages
87
I've designed an append query that returns the correct results in preview, but raises key violation errors when run.

I've searched all over for help info to correct this, but have found little to guide me.

Any ideas?
 

Jack Cowley

Registered User.
Local time
Today, 00:44
Joined
Aug 7, 2000
Messages
2,639
You will have to determine which field is causing the problem if you can't tell from the error message that Access puts up. You can delete fields one at a time until you find the one that is causing the problem and then you can usually tell what the specific problem is (datatype mismatch, duplicate key, etc...).

hth,
Jack
 

pcEars

qryNot_Quite_StoopID
Local time
Yesterday, 19:44
Joined
Jun 12, 2003
Messages
87
That's tough to do, Jack. There's only 1 field being appended. (other fields are only used for criteria)

It is a lookup value from a table of names. What displays is the list of names, but the actual value appended is the primary key from that lookup table.

It is being appended to the lookup field in the destination table.

If the data type is the problem, then I don't know how to proceed.

CANCEL THAT!!!!

Jack, you were right. It was the data type! and with a bit of other tweaking I've got it working even better than I hoped!

Many, many Thanks!!!
 
Last edited:

Users who are viewing this thread

Top Bottom