Multiple table query not editing

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Leventcos21
    New Member
    • Feb 2007
    • 1

    #1

    Multiple table query not editing

    Hi all, I have been stuck on this issue for weeks now and can not find a solution, so I hoping that someone can help me out.

    I am setting up a training database. I have setup the structure and started working on the forms and encountered an issue that has me baffeled.

    ***Table Info****
    Employees have skill sets and it is a M:M relationship
    Employees have training and it is a M:M relationship
    Skill Sets have trainings and it is a M:M relationship

    I have a form and I assign each skill set to employee(s). Some employees have multiple skill sets. Then I go into the type of Training (SOP) and assign the skill sets that need to be trained.

    **PROBLEM***
    Then I go into the employee form and select a certain employee from the list and go into that specfic employee.

    The subform has a list of training(s) that employee has to complete. IE
    Quality Control ---> The employee gets trained on QC and then completed is selected from the drop down menu. However, the Access DB does not allow it. The query seems as if though it is locked.

    I have two intersection tables SkillSet_Detail s and SOP_Details in that query. When I remove the SOP_Details then my subform is not working.

    I can't determine if this is my structure or my query. Please any help will be appreciated. I have attached a screenshot of the relationship
    Table Relationship

    Access 2003
    Last edited by NeoPa; Feb 14 '07, 01:42 AM. Reason: To show picture.
  • NeoPa
    Recognized Expert Moderator MVP
    • Oct 2006
    • 32669

    #2
    Firstly, do your queries run OK?
    Can you post the SQL of the queries that don't work and any relevant error messages reported when running them natively in a query.

    Comment

    • MMcCarthy
      Recognized Expert MVP
      • Aug 2006
      • 14387

      #3
      Firstly you need to break down your many to many relationships by using join tables

      Employees (Assuming primary key EmpID)
      Training (Assuming primary key TrainingID)
      SkillSets (Assuming primary key SkillSetID)

      Remove any foreign keys to each other currently set up in these tables (After creating the following) and create join tables to hold them as follows:

      EmpTraining (Primary Key {EmpID, TrainingID})
      EmpSkills (Primary Key {EmpID, SkillSetID})
      TrainingSkills (Primary Key {TrainingID, SkillSetID})

      Now use these new tables in your queries to join the tables to each other.

      All relationships should now be one to many.

      Also have a look at this tutorial ...

      Normalisation and Table structures

      Mary

      Comment

      Working...