Results 1 to 5 of 5
  1. #1
    Dirty_Head is offline Novice
    Windows 10 Access 2016
    Join Date
    May 2018
    Posts
    17

    Question Joining multiple tables in one "ProfileTable" - Struggling to grasp many-to-many relationships.

    I'm working with 4 tables right now.

    ProfileTable - This is the joining table for the other tables. This table has fields: [PK]ProfileID, EmployeeID, EmergencyID, JobTypeID.

    ExternalEmployees - Employee Data: [PK]EmployeeID, FirstName, LastName, PhoneNumber1, PhoneNumber2, Address, City, State, ZipCode, SSN, Birthdate, [FK]ProfileID

    EmergencyContacts - Employee's Emergency Contacts: [PK]EmergencyID, FirstNameE, LastNameE, AddressE, PhoneNumber1E, PhoneNumber2E, [FK]ProfileID

    JobTypeTable - Simple list of job types we hire for: [PK]JobTypeID, JobType, [FK]ProfileID

    Relationships: [ProfileTable] ProfileID -> Profile ID[ExternalEmployees]. [ProfileTable]ProfileID -> ProfileID[EmergencyContacts]. [JobTypeTable]JobTypeID -> JobTypeID[ProfileTable]
    All Relationships are one-to-many.




    So on my form I'm trying to place "Existing Fields" to add new entries. I need to place a ComboBox dropdown allowing multiple checkboxes for JobType. Our employees could be a general labor, hydroblaster, CDL driver, AND a painter. How do I go about storing multiple JobTypeIDs? Or am I going about this wrong? How should I do this?

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    You'd have a table of all types,
    then in the subForm, a combo would let you assign this type to the sub record.
    add as many records,(and types) as you need for the 1 person.

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    You have described HOW you have done something. Could you tell us in 4 or 5 lines WHAT the underlying business is that you are trying to support with the proposed database. Use simple, plain English --no jargon. Please tell us where the many to many relationship(s) exists. Once readers understand what you are dealing with, I'm sure you'll get some advice and options for how it might be achieved in MS Access.
    Good luck with your project.

  4. #4
    Dirty_Head is offline Novice
    Windows 10 Access 2016
    Join Date
    May 2018
    Posts
    17
    Database will record list of employees, their job types, emergency contact info. Will allow issuing expendable items, allow checkout of reusable items, and allow basic filter/search for employees themselves.

    I've got my checkouts section working, issue items working, now I'm trying to integrate those two into this "third" system of also saving specific employee information.

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    A dropdown with checkboxes requires a multi-value field setup in table. I NEVER use multi-value fields. Suggest you study and fully understand MVF before opting to use. https://support.office.com/en-us/art...C-6DE9BEBBEC31

    Ideally, as Ranman already described, have a related dependent table for associating employees with multiple jobs. Each record would be employee/job pairing.
    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. Replies: 4
    Last Post: 09-10-2015, 08:22 AM
  2. Replies: 1
    Last Post: 09-07-2015, 08:00 AM
  3. Replies: 1
    Last Post: 09-03-2014, 03:27 AM
  4. Replies: 3
    Last Post: 04-01-2014, 12:21 PM
  5. Relationships/Joining Tables
    By suzy7677 in forum Access
    Replies: 3
    Last Post: 12-13-2012, 03:31 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