Results 1 to 3 of 3
  1. #1
    adammitchell23 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Nov 2013
    Posts
    3

    Join Key of [TABLE] not in recordset error.

    Hi all,


    Bear with me, I'm a novice! I'm building a database for a population of animals. I have a form ("AnimalEntry") which updates several tables and is used when new animals enter the population. This form works fine to update existing animals' records, but when I try to add new records (the whole point of the form) it won't add records to one of the tables, giving the error "Cannot add record(s); Join Key of table "MainColonyMembership" not in recordset". The only difference between the table "MainColonyMembership" and the others (as far as I am aware) is that this is a one-to-many relationship and the others are one-to-one relationships. All tables are joined by the field "Animal ID". However, when I use a form elsewhere to add records to just the "MainColonyMembership" form (which I do when an animal changes colony) it adds records just fine.
    I have tried to upload my database but it's repeatedly failed (I'm at a research station in the Kalahari and internet is both crap and super-expensive!).

    Thanks!

    Adam

  2. #2
    drunkenneo is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Jun 2013
    Posts
    199
    Could you Paste the recordset code, so it will be more clear to understand.

  3. #3
    John_G is offline VIP
    Windows XP Access 2003
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    Hi -

    This is admittedly on a guess, but based on your description I suspect that the recordset for your form (which I think must be a query) is missing a required table. Does your database have defined relationships in it? If so, does the recordsource query for your form have a table from only one side of a relationship, but not the other?

    As I say, it's only a guess, but the error message you are getting is suggestive of something like that, where Access cannot add required data.

    HTH

    John

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 18
    Last Post: 06-01-2013, 02:26 PM
  2. Join Key of table in recordset
    By Rohit0012 in forum Forms
    Replies: 14
    Last Post: 09-24-2011, 09:04 PM
  3. Replies: 5
    Last Post: 09-19-2011, 12:01 PM
  4. Join A Recordset to the current db Table
    By mjellis in forum Programming
    Replies: 0
    Last Post: 08-10-2010, 02:44 PM
  5. Error on Multiple Table Join & IIF
    By cmartin in forum Queries
    Replies: 1
    Last Post: 05-21-2010, 08:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums