Why is it that Access stumps me every other day!? I had to create a table that would track two layers of employee experience:
This is what I did for my two levels of CRA experience (thanks to the help of another use):
You kind of have to break what you have now and start over--your EmployeeExperience table (which I hope you have) is obsolete. It will be replaced by a new table that links Employees to ExperienceSubCategories. You will have 4 tables to do this:
Employees
EmpId, EmpFirstName, EmpLastName, EmpStartDate
JK42, John, Smith, 5/2/2013
ExperienceCategories
ExpCatID, ExpCatDesc
1, Human Resources
2, Project Management
ExperienceSubCategories
ExpSubCatID, ExpCatID, ExpSubCatDesc
1, 1, Problem Solving
2, 1, Data Entry
3, 2, Industrial Engineering
4, 2, Mechanical Engineering
EmployeeExperience
EmpID, ExpSubCatID
1,1
1,2
1,3
1,4
Those are the minimum fields and tables you need to accomplish this. I used the sample data you provided to display how it will go into the tables. Look it over and if you have any questions let me know.
They are all related, although not all directly:
ExperienceCategories links to ExperienceSubCategories via ExpCatID
ExperienceSubCategories links to EmployeeExperience via ExpSubCatID
Employees links to EmployeeExperience via EmpID
So, I then made a query that had:
From Employee Table: Employee Name, Employee ID, Employee Status
Then from TableEmployeeExperience: FKSubcategory ID (which has the Experience category and subcategory together), and then Experience ID from the experience table.
The problem is that when I put in one employees experience, which had 50 entries... it created 50 entries of that employee, with all 50 experience things every time.
WHat am I doing wrong??! THank you in advance for any help!
This is what I did for my two levels of CRA experience (thanks to the help of another use):
You kind of have to break what you have now and start over--your EmployeeExperience table (which I hope you have) is obsolete. It will be replaced by a new table that links Employees to ExperienceSubCategories. You will have 4 tables to do this:
Employees
EmpId, EmpFirstName, EmpLastName, EmpStartDate
JK42, John, Smith, 5/2/2013
ExperienceCategories
ExpCatID, ExpCatDesc
1, Human Resources
2, Project Management
ExperienceSubCategories
ExpSubCatID, ExpCatID, ExpSubCatDesc
1, 1, Problem Solving
2, 1, Data Entry
3, 2, Industrial Engineering
4, 2, Mechanical Engineering
EmployeeExperience
EmpID, ExpSubCatID
1,1
1,2
1,3
1,4
Those are the minimum fields and tables you need to accomplish this. I used the sample data you provided to display how it will go into the tables. Look it over and if you have any questions let me know.
They are all related, although not all directly:
ExperienceCategories links to ExperienceSubCategories via ExpCatID
ExperienceSubCategories links to EmployeeExperience via ExpSubCatID
Employees links to EmployeeExperience via EmpID
So, I then made a query that had:
From Employee Table: Employee Name, Employee ID, Employee Status
Then from TableEmployeeExperience: FKSubcategory ID (which has the Experience category and subcategory together), and then Experience ID from the experience table.
The problem is that when I put in one employees experience, which had 50 entries... it created 50 entries of that employee, with all 50 experience things every time.
WHat am I doing wrong??! THank you in advance for any help!