Append Query

nickysquawkes

Registered User.
Local time
Today, 19:04
Joined
Dec 15, 2005
Messages
13
I have a database with a table linked to an Excel spreasheet. I am trying to create an append query to load data from the linked table into a candidate table. Each record in the candidate table has a candidate number which is automatically generated and is the primary key. When I run the query it cannot update the table because of key violations. I haven't got the candidate number as a field in the append query, do I need to put it in there? and if so how should it be setup? Any help would be much appreciated. :)
 
You shouldn't have to put the aut pk fld in the append query. Does the table you are appending to have any fk flds?
 
Thanks Ken thats what I thought. Excuse my ignorance, but what does FK stand for?
 
Foreign Key. Does this table have any other relationships? Is it the many side of a one to many relationship with another table?
 
Then I'm guess that the query is telling you (with the error message), that you are trying to appened records on the many side that do not have an associated on the one side... Make sense? (I'm not very good at explaining these types of things :) )
 
This is the message I get.
 

Attachments

  • error.JPG
    error.JPG
    60.8 KB · Views: 133
Sorry, I'm not sure I can explain any better what your problem is... :)
 
Last edited:

Users who are viewing this thread

Back
Top Bottom