G
Guest
I have a table named "Employee" whih lists all our employee's names, their
department (Transportation, Maintenance, Dispatchers, etc.), and their Titles
(Operator, Attendant, Mechanic, etc).
Our management performs tests and observations (T&Os) on our employees and
we enter the reults from those T&Os on a form and that info gets sent to a
table called "Irv Tests". Of all the various T&Os we do, there is one test
(#109) that every Operator from the Transportation Department must have done
on them twice a year. I am trying to show a Query and ultimately a Report
that will list the names of just the Operators and the dates that they
received this particular test. If they have not received the test yet, I
need their name to still show, but obviously there would not be a date next
to their name.
My attempt to do this (See SQL below) produces a list of only the employees
who have received the test... If you have not received the test your name
would not appear.
SELECT Employee.Employee, [Irv Tests].Date
FROM Employee LEFT JOIN [Irv Tests] ON Employee.Employee = [Irv
Tests].Employee
WHERE ((([Irv Tests].[Test #])="109"))
GROUP BY Employee.Employee, Employee.Position, [Irv Tests].Date
HAVING (((Employee.Position)="Operator") AND (([Irv Tests].Date)>=[Enter
begining date] And ([Irv Tests].Date)<=[Enter ending date])) OR ((([Irv
Tests].Date) Is Null));
I have had the problem in the past and just can't seem to figure it out.
Thanks,
Doug
department (Transportation, Maintenance, Dispatchers, etc.), and their Titles
(Operator, Attendant, Mechanic, etc).
Our management performs tests and observations (T&Os) on our employees and
we enter the reults from those T&Os on a form and that info gets sent to a
table called "Irv Tests". Of all the various T&Os we do, there is one test
(#109) that every Operator from the Transportation Department must have done
on them twice a year. I am trying to show a Query and ultimately a Report
that will list the names of just the Operators and the dates that they
received this particular test. If they have not received the test yet, I
need their name to still show, but obviously there would not be a date next
to their name.
My attempt to do this (See SQL below) produces a list of only the employees
who have received the test... If you have not received the test your name
would not appear.
SELECT Employee.Employee, [Irv Tests].Date
FROM Employee LEFT JOIN [Irv Tests] ON Employee.Employee = [Irv
Tests].Employee
WHERE ((([Irv Tests].[Test #])="109"))
GROUP BY Employee.Employee, Employee.Position, [Irv Tests].Date
HAVING (((Employee.Position)="Operator") AND (([Irv Tests].Date)>=[Enter
begining date] And ([Irv Tests].Date)<=[Enter ending date])) OR ((([Irv
Tests].Date) Is Null));
I have had the problem in the past and just can't seem to figure it out.
Thanks,
Doug