Hello, I'm very new to Access and have a problem:
I have a table with fields as follows:
ProjectNo, EmployeeNo, [+many fields which display dates when the employee was finished with different tasks in said project]
Each project can have many employees, ie one row for each employee (but with the same projectNo)
I want to make a query that lists all the fields for projects that have a certain employee. I.e. I don't just want to list the rows that have the employeeNo in them - I want to list all project rows for projects which has a row with the certain EmployeeNo.
I figured one way was to
1) make a "temp" field in a query listing only the projects that include that EmployeeNo, and then
2) make a query on the original table that only lists the projects included in that "temp" field.
I've created the "temp" field with the following
SELECT tblProjects.ProjectNo AS temp
FROM tblProjects
WHERE tblProjects.EmployeeNo="xxxx";
but I don't know how to do the 2) part
Anyone has any advice? It's ok if you know an alternative simpler method
I have a table with fields as follows:
ProjectNo, EmployeeNo, [+many fields which display dates when the employee was finished with different tasks in said project]
Each project can have many employees, ie one row for each employee (but with the same projectNo)
I want to make a query that lists all the fields for projects that have a certain employee. I.e. I don't just want to list the rows that have the employeeNo in them - I want to list all project rows for projects which has a row with the certain EmployeeNo.
I figured one way was to
1) make a "temp" field in a query listing only the projects that include that EmployeeNo, and then
2) make a query on the original table that only lists the projects included in that "temp" field.
I've created the "temp" field with the following
SELECT tblProjects.ProjectNo AS temp
FROM tblProjects
WHERE tblProjects.EmployeeNo="xxxx";
but I don't know how to do the 2) part
Anyone has any advice? It's ok if you know an alternative simpler method