Results 1 to 6 of 6
  1. #1
    Havitosh is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    May 2015
    Posts
    3

    How to view parent and child records in Access 2013?

    Hello,


    I'll give a simple example to explain my question.
    I have 2 record's in a table- food & cloth.
    In another table i keep records that belong to one of the previous records- meat & fruits for food,
    shirt, hat, pants for cloth.
    in third table i keep sub records for table 2- cow, ham for meat, orange for fruits etc..
    All the table are connected with proper one to many relationships.


    Is it possible to display the records in such a way that when i choose one records i will see the parent record and all it child's?
    If its possible, can i set the display in 3 separate list's box so when i pick one record all other's will be highlighted according to their relationships?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Sounds like form/subform (or report/subreport) arrangement.

    What you describe for the listboxes sounds like dependent (cascading) controls http://www.datapigtechnologies.com/f...combobox2.html.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Havitosh is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    May 2015
    Posts
    3
    Quote Originally Posted by June7 View Post
    Sounds like form/subform (or report/subreport) arrangement.

    What you describe for the listboxes sounds like dependent (cascading) controls http://www.datapigtechnologies.com/f...combobox2.html.
    Hi June7,
    Does your example work the other way as well? can you select location and have the region displayed?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    I presume a location can be in only one region. If so, having a combobox for region dependent on location combobox doesn't makes sense.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    Havitosh is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    May 2015
    Posts
    3
    It makes sense if you have a location name and you want to know what region it is in, possible?

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    The region could be another column in the combobox RowSource. All columns can be viewed in the drop down list. A textbox could have expression that references the region column.

    Or a combobox could concatenate the location and region fields so both values will display in the combobox. Either way, a combobox for region is not needed.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Parent Child records in reporting
    By Darlene in forum Reports
    Replies: 1
    Last Post: 03-22-2014, 06:49 PM
  2. Replies: 7
    Last Post: 01-21-2014, 11:32 AM
  3. Replies: 4
    Last Post: 09-13-2013, 05:26 PM
  4. Replies: 3
    Last Post: 07-03-2013, 01:20 PM
  5. Delete child records with parent record
    By jpkeller55 in forum Access
    Replies: 8
    Last Post: 09-07-2010, 08:52 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