+ Reply to Thread
Results 1 to 3 of 3

How to link two tables together with relationships

  1. #1
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    298

    How to link two tables together with relationships

    I am brand new to Access.

    I have two tables:

    Employees
    Projects


    Projects primary key is "Project ID"
    Employees primary key is "Employee Name"


    I have a field on the Projects table that says "Employees assigned"

    I have a field on the Employees table that says "Projects assigned"

    I need BOTH those fields, to be linked somehow.

    I.e. if I import a spreadsheet into the Projects table, with the value "Johnson, Williams, Smith" in the employees assigned field for Project ID "65" , I want Access to automatically edit the "Johnson", "Williams", and "Smith" records on the employees table, and and for each of those employees records, add "65" to their "Projects assigned field".

    Each project can have multiple employees and each employee can have multiple projects.

    So its a many-to-many relationship


    But I cannot for the life of me get this to work. I need it to update universally, so if I delete a project off Johnson's record, it will remove Johnson's name from that Project record and vice versa.

    Could someone walk me through this??

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,865

    Re: How to link two tables together with relationships

    I believe from your explanation that you require a junction table. Look at this link

    http://en.tekstenuitleg.net/articles...ship-in-access
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    02-12-2015
    Location
    USA
    MS-Off Ver
    2010
    Posts
    9

    Re: How to link two tables together with relationships

    Like Alansidman says, you need a junction table. A sort of middle man if you will. You cannot do a many to many relationship without it. In addition to his link I suggest looking here: http://ms-access-tips.blogspot.com/2...ationship.html

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 10
    Last Post: 11-03-2013, 02:24 AM
  2. link tables
    By drobinson38 in forum Excel General
    Replies: 7
    Last Post: 05-16-2013, 03:48 PM
  3. Can I link 2 SQL tables?
    By troverman in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 01-28-2013, 11:49 AM
  4. Multiple Data Tables Link and Calculate onto Target Tables
    By billexchry in forum Excel General
    Replies: 6
    Last Post: 03-04-2011, 02:42 PM
  5. Link rows to tables
    By SirLunk in forum Excel General
    Replies: 1
    Last Post: 07-08-2010, 04:55 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1