Results 1 to 3 of 3
  1. #1
    seanp is offline Novice
    Windows Vista Access 2007
    Join Date
    Apr 2010
    Posts
    2

    Unhappy Table Relationships

    Hello
    I am trying to create a relationship between 3 tables (see pic) so that the ones on the left and right automatically update the middle one giving me all the information i need in one place.


    I have attempted enforcing referential integrity but this brings back an error message "no unique index round for the referenced field of the primary table"
    Any help would be appreciated but please dumb it down because some of this stuff is way over my head.
    Thanks

  2. #2
    nacho is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2010
    Posts
    11
    hmm it would appear you are in the position i was a few hours ago.
    And i've successfully created my relationships.
    So basically your error message is telling you that you can only have relationships between a primary key (example of primary key in your case = "ID" or "AutoRef") from one table, in your case, for example:
    "AutoRef" from the Engineer table and another field (Example of fields in your case: "Item" and "Quantity"). This other field would generally have the same name, but be in a different table. We call this foreign key. I'll show you what my relations table looks like at the moment, i've attached image.
    If you want to talk this over MSN or anything, please notify me, you can send me your initial database and i will help you reconstruct it

    BTW i understand you are new to databases (well it appears so from the way you've made your tables), so may i ask if this is for school or something? I can give you some links to help you understand the general idea of Access. It looks as if you don't understand what relationships are, in that case go to:
    Code:
    http://thoreau.dnr.state.mn.us/mis/gis/tools/arcview/Training/WebHelp/Courses/Intro/Section8/Page8-3.html
    Code:
    http://databases.about.com/od/tutorials/ss/relationships.htm

  3. #3
    seanp is offline Novice
    Windows Vista Access 2007
    Join Date
    Apr 2010
    Posts
    2
    Thanks, i wanted to mess around with subforms, but i think im gonnna have to start it again. You have helped explain how to use relationships though.

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

Similar Threads

  1. Table Relationships?
    By Meld51 in forum Access
    Replies: 3
    Last Post: 03-01-2010, 08:34 AM
  2. Table Design & Relationships
    By mastromb in forum Database Design
    Replies: 16
    Last Post: 12-30-2009, 10:35 PM
  3. Table Relationships
    By jp2access in forum Database Design
    Replies: 3
    Last Post: 06-19-2009, 10:20 AM
  4. auto populate and table relationships
    By jmarti57 in forum Access
    Replies: 0
    Last Post: 11-09-2008, 09:50 PM
  5. I need help on relationships for tables.
    By justin.w in forum Access
    Replies: 0
    Last Post: 10-16-2006, 10:57 AM

Tags for this Thread

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