Results 1 to 7 of 7
  1. #1
    Fish218 is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Feb 2012
    Posts
    68

    Relationships

    Please see attachment.

    I'm interested in tblCollectionsC1, tblNetPanelDepth, and tblIndividualFish.

    Are there any issues with setting up a relationship to what I have in the attachment. CollectionID (tblCollections) to both tblNetPanelDepth and tblIndividualFish and also have NetPanelID (tblNetPanelDepth) to tblIndividualFish?

    I don't only want to relate tblNetPanelDepth to tblIndividualFish because if there are no fish then I would have no record of net depth. Should I remove the CollectionID relationship between tblCollectionsC1 and tblIndividualFish? Thanks.
    Attached Thumbnails Attached Thumbnails Relationship.jpg  

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    I do not understand the question. Perhaps an example of your data and what you want your end result to be.

  3. #3
    Fish218 is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Feb 2012
    Posts
    68
    The issue I'm having is with circular relationships...I found another one and posted it in the thread "Is This Bad?"

  4. #4
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    I don't really use relationships (I find them more limiting and annoying sometimes). Any time you have three tables making a triangle (each table relates to the other two) you're probably going to get a circular reference error. The relationships do NOT mean that you can't link tables however you want in queries so I would just remove the link between panel depth and collections.

  5. #5
    Fish218 is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Feb 2012
    Posts
    68
    How do you not use relationships?

  6. #6
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    You just don't set them up, the drawback is that when you create queries and you add multiple tables you have to establish the links between tables by hand every time, but to me it's a small price to pay for the aggravation of dealing with relationships.

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Setting relationships serves as a means to enforce referential integrity. Setting relationships is not required for building queries. If relationships are set then when you create a query using the tables the query join will automatically be established according to the relationship. If relationship not set then manually establish the join in the query. As rpeare pointed out established relationships can sometimes get in the way. I do have some relationships set and find that sometimes I don't want the tables joined in query according to the relationship. I have to delete the query join and then set it as I want it.
    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. Relationships
    By hithere in forum Database Design
    Replies: 1
    Last Post: 04-03-2012, 11:03 PM
  2. Replies: 15
    Last Post: 01-04-2012, 05:03 PM
  3. Relationships
    By bopsgtir in forum Database Design
    Replies: 1
    Last Post: 01-10-2011, 12:44 PM
  4. Relationships again
    By BarbT in forum Access
    Replies: 2
    Last Post: 11-09-2010, 04:12 AM
  5. Relationships?
    By rosh41 in forum Database Design
    Replies: 2
    Last Post: 06-23-2010, 01:26 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