Results 1 to 3 of 3
  1. #1
    caseyn is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Mar 2018
    Posts
    1

    Question Connecting Parent/Child/sibling items

    I have a very large database of designs that have a number of "similar to" fields:



    -design converted from (design # xxx)
    -design converted to (design # xxx)

    -old copyright
    -copyright

    -similar to 1 (design # xxx)
    -similar to 2 (design # xxx)
    -similar to 3 (design # xxx)

    -client converted from (client code XX)
    -client converted to (client code XX)

    I am trying to figure out how to set these up in some kind of parent/child/sibling tree so that when I pull one item up, all the ones that are related to it are easy to find. The database is much larger and messier than the ones I am used to, so I am not sure how to go about managing this.

    I'm also redesigning the back end of the database right now, so I can change just about anything that needs to be changed.

    thank you all

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    youd have the master form (on the master table) for record say: 2018 Honda Accord.
    then the subtable would hold :
    -similar to 1 (design # xxx)
    -similar to 2 (design # xxx)
    -similar to 3 (design # xxx)

    this would be a subform linked to the parent record on ID.

    then you can view all changes made to the parent record in the subform.

  3. #3
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,845
    The basic principle is to add a parentFK field to your table and for the parent populate it with the tablePK. Populate this field in the child records with the parent tablePK.

    Then to find all records that are related filter on this field.

    However if a parent can also have a parent and you want to map the relationship then you need a slightly different approach. You need to use a recursive query to identify the children, then the grandchildren etc. Access sql does not support a recursive action, but this can be achieved instead in vba.

    There are plenty of threads on how to create and maintain a tree. Which one is right for you depends on your requirements. From your post it would seem sufficient to know that 'all these designs are related' in which case the first option is sufficient (perhaps with some process around naming convention), but if you truly need a tree to show which design begat which design, you will definitely need a tree. Google 'binary tree' and similar for ways to do it

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

Similar Threads

  1. connecting parent combobox to child comboboxes
    By aparnawangu in forum Forms
    Replies: 4
    Last Post: 08-04-2015, 09:50 AM
  2. Replies: 7
    Last Post: 01-21-2014, 11:32 AM
  3. Replies: 3
    Last Post: 07-03-2013, 01:20 PM
  4. Child/Parent relationship
    By ErnieS in forum Forms
    Replies: 1
    Last Post: 08-20-2010, 01:22 PM
  5. Calculation using Child and Parent
    By SamanthaSamuels in forum Reports
    Replies: 3
    Last Post: 08-17-2010, 11:07 AM

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