I assume that you have a junction table that relates employees to
requirements/expertises:
tblEmpExpertise
EmployeeID
ExpertiseID
Assuming that ExpertiseID holds a number such as 1, 2, 3, etc., use a query
similiar to this (I've hardcoded in the value of 1 as the requirement
value -- you can replace this with whichever value you wish):
SELECT EmployeesTable.EmployeeID, EmployeesTable.EmployeeName
FROM EmployeesTable INNER JOIN tblEmpExpertise
ON EmployeesTable.EmployeeID = tblEmpExpertise.EmployeeID
WHERE tblEmpExpertise.ExpertiseID = 1;

Signature
Ken Snell
<MS ACCESS MVP>
>i have orders which have different requirements, for example
>
[quoted text clipped - 45 lines]
> Thank you
> don
Don - 27 Jan 2005 19:15 GMT
how can i use this to find which employee is able to complete which order. is
there a way that i could improve this to find this information. what if the
order requires expertise and there is is only 1 employee that has 3
expertises.
thanks
> I assume that you have a junction table that relates employees to
> requirements/expertises:
[quoted text clipped - 61 lines]
> > Thank you
> > don
Ken Snell [MVP] - 27 Jan 2005 20:28 GMT
This would be done by using a query that contains the employee table joined
to multiple copies of the junction table. This will best be done by
programming, essentially building the query based upon how many expertises
are needed for a single order.
As an example, let's assume that your order needs experises 1 and 4. In
general, the SQL statement for finding the employees who have these two
expertises would be this:
SELECT tblEmployee.EmpID, tblEmployee.EmpName
FROM (tblEmployeeINNER JOIN tblEmpExpertises ON
tblEmployee.EmpID = tblEmpExpertises.EmpID) INNER JOIN
tblEmpExpertises AS tblEmpExpertises_1 ON
tblEmployee.EmpID = tblEmpExpertises_1.EmpID
WHERE (((tblEmpExpertises.ExpID)=1) AND
((tblEmpExpertises_1.ExpID)=4))
GROUP BY tblEmployee.EmpID, tblEmployee.EmpName;
You would need to expand on this if you had three expertises or more by
adding another copy of the tblEmpExpertises table with an alias and joining
it to tblEmployees.

Signature
Ken Snell
<MS ACCESS MVP>
> how can i use this to find which employee is able to complete which order.
> is
[quoted text clipped - 75 lines]
>> > Thank you
>> > don