Page 1 of 2 12 LastLast
Results 1 to 15 of 24

Thread: Append query key violations

  1. #1
    Join Date
    Dec 2008
    Posts
    37

    Append query key violations

    Hi

    Am at the end of my knowledge!

    I am getting the dreaded "key violations" message on an Append query - every single record on the input table is rejected.

    I have checked all the indexes on the target table and they are all OK.

    Does anyone have any ideas? Its amazing how many hits you get surfing but I havent found one that works for me.

    This is so simple - no VBA, no macro --- just a simple append query of a few fields on the input data to a large master table

    Any ideas very welcome

    Regards

    Tony Randell

  2. #2
    Join Date
    May 2006
    Posts
    407
    Are the keys from the input table already in the destination table? Are you supplying the entire key (if multiple fields in the key) from the input table? If neither of these ideas solves your problem, then you next post should be what the key fields are in the destination table, what the fields are from the input table that are being used to fill the key fields in the destination table. Give us both the field names and the field definitions.

  3. #3
    Join Date
    Oct 2006
    Location
    Maitland NSW Australia
    Posts
    275
    Please post the exact message displayed. From memory I think the message shows how many records were not appended for various conditions. You maybe appending blank fields, incorrect data type etc.
    Allan

  4. #4
    Join Date
    Dec 2008
    Posts
    37

    Append Query Key Violations

    Hi

    The full msg is attached as a screen shot.

    The input table does not supply any key as the object table has an Autonumber key.

    Regards

    Tony Randell

  5. #5
    Join Date
    May 2006
    Posts
    407
    I don't see any attachment to the post you just posted.

  6. #6
    Join Date
    Dec 2008
    Posts
    37

    Screen shot

    Hi

    The msg was attached I thought via manage attachements - trying again.

    The no of records rejected equals the entire file

    Regards


    Tony Randell

  7. #7
    Join Date
    Dec 2008
    Posts
    37
    How do you attach a jpg?

  8. #8
    Join Date
    May 2006
    Posts
    407

    Attachments

    Use the "Go Advanced" button just below the "Quick Reply" area. In the "header" area of the message field, you should see a paper clip icon. Click the paper clip icon. Then in the manage attachments form, click the "Browse..." button. Navigate to the image on your computer, select it and click the "Open" button. Then, before leaving the "Manage Attachments" form, click the "Upload" button. I have done all that is documented here, and there should be an attachment to this post which will be a small image of Snoppy. Just to be sure, I clicked the "Submit Reply" button that is below the "Additional Options" area rather than the "Submit Reply" button that is below the typing area for your post.
    Attached Images Attached Images

  9. #9
    Join Date
    Dec 2008
    Posts
    37

    Jpg

    Trying again

  10. #10
    Join Date
    May 2006
    Posts
    407
    If you preview your post you will be able to see if anything is attached or not. Of course, you could also, carefully, retype the message you are trying to attach. That might just be easier for all for you to take the time to do that typing of the message if the attachment process is not working for you.

  11. #11
    Join Date
    Dec 2008
    Posts
    37

    Again

    Again and again - why do I have to sign in all the time?

  12. #12
    Join Date
    May 2006
    Posts
    407
    Tony, let's just stick to one problem at a time. Signing in type of stuff should be directed to the forum administrator.

  13. #13
    Join Date
    Dec 2008
    Posts
    37

    Once more

    Its the last time

    BTW all it says is that the entire file has been rejected due to key violations

    File attachment does not work me?
    Attached Images Attached Images

  14. #14
    Join Date
    Dec 2008
    Posts
    37
    It worked!

  15. #15
    Join Date
    May 2006
    Posts
    407
    What worked? The query or the attachment?
    By the way, having seen the attachment, there is a ton of information in the error message rather than what you "quoted." The message states that Access "can't append all the records in the append query." That means that not ALL the records were appended. It does not mean that ALL the records were rejected. When it states that "not all the records were appended." that means that some records were not appended. Then the message gives you the count of the records that were not appended and why they were not appended. That is why I asked for you to "carefully" retype the message so we could see what the message actually says. It is impossible (usually) to help someone with only a small portion of the information. And even harder to help someone that is not sharing ALL the information that is being requested. If I am sounding a little unhappy here, it is because I have been using my time to try to help you, but you have not been careful of my time.

    Now, going back to something I asked for in my first reply to you.
    If neither of these ideas solves your problem, then you next post should be what the key fields are in the destination table, what the fields are from the input table that are being used to fill the key fields in the destination table. Give us both the field names and the field definitions.
    If you want help from me, then answer the questions. If you don't care about me helping, then don't answer the questions.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •