WHERE WFR.EmployeeID Not In (SELECT
ID FROM Disciplinaries)
I don't think this will give you the results you expect.
This will result in a 1 to 1 relationship between WFR.EmployeeID and Disciplinaries.ID.
Shouldn't it be
Code:
WHERE WFR.EmployeeID Not In (SELECT EmpID FROM Disciplinaries)
As for the request for the parameter, you might create another query
Code:
SELECT EmpId, SUM(Points) AS CurrentPoints FROM Points GROUP BY Points.EmpId
Name it "qryPoints"
and join it with the your query.
This is air code. I do not have Access available to test this , but you should get the idea....
Code:
SELECT WFR.EmployeeID,
WFR.EmployeeName,
WFR.Supervisor,
WFR.RehireDate,
WFR.EmployeeClass,
qryPoints.CurrentPoints
FROM WFR INNER JOIN qryPoints ON qryPoints.EmpID = WFR.EmployeeID ' << not sure if this is correct syntax
WHERE WFR.EmployeeID Not In (SELECT EmpID FROM Disciplinaries)
AND WFR.EmployeeClass = '3P Onsite Worker'
AND qryPoints.CurrentPoints < 1.5
AND DATEDIFF(d, Date(),WFR.RehireDate) > 7 * 8;
The blue is what I changed...
Also, I changed Now() to Date(). Now() is date and time, Date() is the date only (actually the time is 00:00:00)
My $0.02