Results 1 to 8 of 8
  1. #1
    neuk is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    May 2019
    Posts
    36

    Branch relationships between primary and foreign ID


    Imagine I have a basic primary id item (widget(n)) and foreign id item (object(n)) relationship. On a continuous form it would look something like this:

    Widget 1 Object 1
    Widget 1 Object 2
    Widget 1 Object 3
    Widget 2 Object 4
    Widget 2 Object 5
    Widget 3 Object 6
    Widget 3 Object 7
    Widget 3 Object 8
    Widget 3 Object 9

    While that makes perfect sense, it would be nice if I could display the relationship like such on a form:
    Widget 1 Object 1
    Object 2
    Object 3
    Widget 2 Object 4
    Object 5
    Widget 3 Object 6
    Object 7
    Object 8
    Object 9

    In other words, instead of “visually” repeating the primary id item – although that’s the whole point – can you display it such that it shows the primary id item only once and then lists all relationships underneath? I don't need to edit or change anything on this form. I'd just like it for a visual reference to what's going on other forms where I make these connections.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    a report can, but not really in a form.
    Forms are all , or nothing.

  3. #3
    neuk is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    May 2019
    Posts
    36
    I'm not too familiar with reports, but I think a report would work since what I'm trying to do is only for reference purposes - not trying to edit or change anything. Do you know what this sort of thing I'm trying to do is called so I can google it or do you know a reference off hand where someone shows this specific thing I'm trying to do?

  4. #4
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,923
    PMFJI,
    Hide Duplicates

  5. #5
    neuk is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    May 2019
    Posts
    36
    Ok. Thank you. I think this link will help anyone interested:
    Last edited by neuk; 11-13-2020 at 10:16 AM.

  6. #6
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,798
    I'm not sure I see the sense in that unless perhaps it has something to do with the appearance of the report, or perhaps when that was posted, reports didn't have grouping capability. Somehow I think that's not the case though. So why not just create a 'Group by' Widget on the report? In design, right click on report and choose 'Sorting and grouping' from the context menu...
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  7. #7
    neuk is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    May 2019
    Posts
    36
    Quote Originally Posted by Micron View Post
    I'm not sure I see the sense in that unless perhaps it has something to do with the appearance of the report, or perhaps when that was posted, reports didn't have grouping capability. Somehow I think that's not the case though. So why not just create a 'Group by' Widget on the report? In design, right click on report and choose 'Sorting and grouping' from the context menu...
    Micron,
    You're right. I deleted that reference. Simply grouping by specific fields that apply to the primary id worked.

  8. #8
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,798
    Deleting the link kind breaks the continuity IMO. Besides, if you left it in, it might do 2 things
    - direct someone to a method that is appropriate for their situation
    - introduce them to one of the best Access info sites there is
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Help allocating Primary/Foreign Keys and Relationships
    By rosscortb in forum Database Design
    Replies: 2
    Last Post: 07-08-2015, 08:12 AM
  2. vba to show Relationships --Primary Key and Foreign Key
    By orange in forum Code Repository
    Replies: 1
    Last Post: 06-12-2015, 10:11 AM
  3. Replies: 5
    Last Post: 09-09-2014, 01:39 AM
  4. Primary and foreign key in relationships?
    By Fatbot in forum Access
    Replies: 1
    Last Post: 04-12-2011, 10:11 AM
  5. Primary/foreign keys + relationships
    By tripptofer in forum Database Design
    Replies: 0
    Last Post: 08-12-2009, 07:44 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