Results 1 to 3 of 3
  1. #1
    gangel is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2014
    Posts
    194

    Multiple relationships to same IndexID on a report

    Hey pplz,



    Got a question regarding reports!!

    So I have:
    TblSuburb
    SuburbName
    Postcode

    Then I have
    Customer
    SuburbID

    Employer
    SuburbID


    InsuranceCompany
    SuburbID

    Now I have a report with:
    Customer, Insurance Company and Employer on there all with their addresses and im having issues!

    If I add SuburbName to the report how do I know which suburbID it is referring to!?

    At the moment I am just adding suburbID of all the above and then using Dlookup on the report but I know this is a bit of a stupid way of doing it!

    Ideas/advice most welcome

    Gangel

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    You'd base the report on a query. In the query, add the suburb table 3 times. Join each SuburbID to a different instance of it. You can change the alias that gets automatically assigned to a more descriptive one.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Looks like you might be missing field "SuburbID" in table "TblSuburb"

    Consider:
    TblSuburb
    -------------
    SuburbID_PK
    SuburbName
    Postcode

    Then I have
    Customer
    ----------
    CustID_PK
    SuburbID_FK

    Employer
    ---------
    EmployerID_PK
    SuburbID_FK

    InsuranceCompany
    -----------------
    InsurCmpyID_PK
    SuburbID_FK



    Where:
    _PK = Primary Key
    _FK = Foreign Key

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

Similar Threads

  1. multiple many-to-many relationships
    By barbP in forum Database Design
    Replies: 2
    Last Post: 02-19-2015, 11:41 AM
  2. multiple many-to-many relationships
    By FMAlanbrooke in forum Database Design
    Replies: 1
    Last Post: 09-11-2014, 04:33 AM
  3. Showing multiple many-to-many relationships in a report
    By DepricatedZero in forum Reports
    Replies: 3
    Last Post: 05-06-2013, 06:16 AM
  4. Multiple one to many relationships
    By Iain in forum Database Design
    Replies: 6
    Last Post: 07-01-2012, 03:49 PM
  5. Displaying Multiple Relationships
    By paddon in forum Reports
    Replies: 7
    Last Post: 12-06-2010, 04:25 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