Results 1 to 5 of 5
  1. #1
    Mcdodre is offline Novice
    Windows XP Access 2003
    Join Date
    Jun 2010
    Posts
    3

    Re: Adding a new record to a joined table

    Hey all,
    So i've spent a few hours trying to find a way to do this online to no avail, hopefully you can help me out.

    I have a database which in part consists of 6 joined tables. Each is joined by a seperate ID field.
    IE:
    Table A:
    ID1 (primary key)(used to identify information in TableA)
    ID2 (Joined to Table B)



    Table B:
    ID2 (primary key)(used to identify the information in TableB, and Joined to TableA)
    ID3 (Joined to Table C)

    Table C:
    ID3 (primary key)(Identifieing information in TableC, and joined to TableB)
    ID4 (Joined to Table D)

    And so forth.

    The Problem is, we have to copy everything in the second from the "Top" table, which is laid out sorta like this..

    Table D
    ID5 (primary key) Linked to Table C
    ID6 Linked to Table E
    ID 7
    ID 8 Linked to Table F


    Basically we need to copy all of the values in Table D, change one value, and then add them back in to the table. Unfortunately, when we go to do this, because of the joins it won't let us create a new record.

    I feel like there is probably a simple solution, but I can't seem to find it. We've tried just appending to Table D with no luck, and even starting from the bottom and creating duplicates of everything, but in order to do that it seems you have to simultaneously create a new record for each table all the way up.

    Is there something simple I'm missing?

    (Sorry about not being able to just post a screenshot or anything, hopefully it makes sense.)


    Thanks so much for your time

  2. #2
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    no there isn't necessarily a simple solution. you are correct that the joins are the issue - but via a forum I don't see how one could analyze what could be modified to make it an updateable query.

    You might address this in an entirely different manner. Sense you want to see all the related data (which is why you are joining all this). Strip back your query by removing tables one at a time - until it is updateable. So that you have the most data as possible in one query. Then make a form based on this query.

    Then insert the other tables (that were removed from the big joined query) into the main form as subforms. The wizard will walk you thru linking the cross referencing fields.

    This approach will allow you to see all the data - and update whatever field you want.

    To make it pretty you can consider making forms for those sub tables - and inserting them rather than the tables themselves.

  3. #3
    Mcdodre is offline Novice
    Windows XP Access 2003
    Join Date
    Jun 2010
    Posts
    3
    Thanks for the reply,

    I'll try that out. My concern would just be that it is part of a larger program, including upload tools which I haven't had a chance to look at. Its kind of a weird situation in that its an old program thats been updated, and now I've been asked to take a look at it with no experience in VBA for Access. Good fun. So i'm just wondering if I was to remove those tables then it might not upload correctly?

  4. #4
    Mcdodre is offline Novice
    Windows XP Access 2003
    Join Date
    Jun 2010
    Posts
    3
    Just re-re read your post.. I'm not sure if this is exactly what you meant, but can I remove tables down to the base one, and then edit them all indvidualy (Either bringing them in without links, or in another project) and then rejoin them?

    Sorry, wish I understood it all better.

  5. #5
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    one would never remove tables

    my first post describes a way to be able to enter data - - - while viewing alot of data from alot of cross referencing tables;

    it is an approach to use when attempts to bring all the data together via a single query (with lots of joins) results in a non-updateable query.

    this is all implemented in queries & forms/subforms; none of this affects any of your tables and so will not affect any imports/uploads involving those tables.

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

Similar Threads

  1. Replies: 1
    Last Post: 03-29-2010, 04:11 AM
  2. Replies: 0
    Last Post: 10-14-2009, 02:44 AM
  3. Replies: 5
    Last Post: 08-07-2009, 05:23 PM
  4. Adding a record based on combo
    By cjamps in forum Forms
    Replies: 1
    Last Post: 02-24-2009, 12:01 PM
  5. Adding a single record
    By kfoyil in forum Forms
    Replies: 2
    Last Post: 11-22-2006, 09:12 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