Results 1 to 2 of 2
  1. #1
    Keeper is offline Novice
    Windows Vista Access 2007
    Join Date
    Apr 2012
    Posts
    11

    Building Relationship: one to many

    I'm building a new db which tracks personnel (one table) and training events (second table). I've created an intermediary table which records which personnel have attended which training events. I'm having trouble figuring out how to build the relationships between these three tables. The key for Personnel is the last four of an individual's SSN. The key for Training is an event code. Both fields have been added to the Tracking table, along with a completion date.



    One individual may attend multiple training events. Each training event may be attended by multiple people. Each individual may attend multiple training events on the same day. So I think this equates to:

    Personnel - Tracking: one to many
    Tracking - Training: many to many

    Is this correct?

    When I try to build the relationships, it always turns out as a one to one relationship, and I can't figure out how to change this. I'm using Access 2007, and it's been about 10yrs since I've built a db, so I'm learning from scratch.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,616
    The relationship is many to many: each person can have many training and each training can have many persons. The unique ID fields in Personnel and Training have been set as primary key?

    The junction table 'Tracking' has records that associate persons with trainings.

    Person and training PK values can each occur many times in Tracking, however, each pair combination should be allowed only once (unless you want to allow training repeat then the date becomes another component of uniqueness). One way to enforce is to set both fields as compound primary key.
    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. Building a FAQ
    By Karin in forum Access
    Replies: 5
    Last Post: 03-07-2011, 11:26 AM
  2. Building a database from scratch
    By kookiethekat in forum Access
    Replies: 1
    Last Post: 01-20-2011, 06:35 AM
  3. Building
    By jlech1805 in forum Access
    Replies: 1
    Last Post: 11-17-2010, 12:10 PM
  4. Building Array
    By jgelpi16 in forum Forms
    Replies: 12
    Last Post: 03-22-2010, 12:33 PM
  5. need some advice building DB (noobie)
    By sureshot in forum Access
    Replies: 2
    Last Post: 10-12-2009, 09:49 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