G
Guest
I am trying to display a list of employees that do not have vacation on a
certain date. The SQL is below. It kinda of works. The problem is it only
shows the employees that have vacation scheduled, and if they have more than
one date they will be listed multiple times. If you are an employee that
does not have any vacation scheduled your name is not displayed. How do I
show only one employee name and all employees that do not have vacation on
that date?
SELECT E.EmployeeID, E.FirstName & " " & [LastName] AS Name,
tblVacation.VacationDate
FROM tblEmployee AS E LEFT JOIN tblVacation ON E.EmployeeID =
tblVacation.EmployeeID
WHERE (((tblVacation.VacationDate)<>[forms].[frmschedule].[txtrecorddate]))
ORDER BY E.FirstName, E.LastName;
certain date. The SQL is below. It kinda of works. The problem is it only
shows the employees that have vacation scheduled, and if they have more than
one date they will be listed multiple times. If you are an employee that
does not have any vacation scheduled your name is not displayed. How do I
show only one employee name and all employees that do not have vacation on
that date?
SELECT E.EmployeeID, E.FirstName & " " & [LastName] AS Name,
tblVacation.VacationDate
FROM tblEmployee AS E LEFT JOIN tblVacation ON E.EmployeeID =
tblVacation.EmployeeID
WHERE (((tblVacation.VacationDate)<>[forms].[frmschedule].[txtrecorddate]))
ORDER BY E.FirstName, E.LastName;