Results 1 to 4 of 4
  1. #1
    intern is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2014
    Posts
    6

    Multiple FKs in One Cell

    I have a table which lists Area of Work, Work Started, Work Ended, Contact_FK. I have another table which lists the Contact_PK, Contact Name, Contact Email, and Contact Phone. In the first table, I would like to list two contact FKs in one cell (as seen in the bottom right cell of the first table below). Is this possible?

    Area of Work Work Started Work Ended Contact_FK
    Downtown 3/23/13 3/31/13 1
    Midtown 4/1/13 4/30/13 1,2

    Contact_PK Contact Name Contact Email Contact Phone
    1 John Deere john@deere.com (800)555-1234
    2 Joe Schmoe joe@schmoe.net (800)555-4321


  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,848
    In plain English what do the proposed 2 FKs represent?

    eg. Can you have more than 1WorkActivity in a WorkLocation at the same time?
    Can more than 1 Person be the Contact for a WorkActivity?

    I think you have to define Work more precisely for readers to understand your setup.
    You could consider "Units of Work" as Tasks or Projects.
    A Project can have 1 or many WorkSessions.
    A Project can have 1 or Many Contacts.


    If yes to these, then I think your table structures may be an issue.

    Code:
    Project--+-->WorkSession---->Worker
            |             |
            |             |
            |             V  
            V          WorkLocation
           Contact

  3. #3
    intern is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2014
    Posts
    6
    I've decided to make multiple columns (Contact_1, Contact_2, etc.). It's not the most elegant, but it will do for my needs.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    Multiple values in one field and repeating fields are both no-no's from a normalization standpoint. The proper design would be a related table with a record for each contact (basically a many-to-many junction table).
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 1
    Last Post: 07-12-2013, 01:48 PM
  2. Replies: 4
    Last Post: 09-19-2012, 11:49 AM
  3. Multiple Checkboxes to Populate Data Cell
    By sonoamore in forum Forms
    Replies: 3
    Last Post: 06-02-2012, 09:23 AM
  4. Combine multiple rows into one cell
    By zarfx4 in forum Queries
    Replies: 8
    Last Post: 06-08-2009, 10:42 AM
  5. Can we post Access cell data to Excel cell properties?
    By Zethro in forum Import/Export Data
    Replies: 1
    Last Post: 12-13-2005, 08:42 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