I have report with two subreports. The report is for tracking time off the Type of Time off is Value list "Vacation Approved, Vacation Denied, LOA Approved, LOA Denied, and LOW" my subreports count the History and the current and subtotal the information. One of the employees is being listed twice. He id the only one with Different Time off types in Current and History. The Main reports code is below. Can someone please tell me how to get this report to print right. Each person only once. I thought i had it.
SELECT DISTINCT [Employee List].Department, [Employee List].[Last Name], [Employee List].[First Name], [Employee List].[Seniority Date], [Employee List].[Vacation Elegibility], Count([Time off Booked].[Time Off Booked]) AS [CountOfTime Off Booked], [Time off Booked].[Time Off Booked]
FROM [Employee List] INNER JOIN [Time off Booked] ON [Employee List].[Employee Number] = [Time off Booked].[Employee Number]
GROUP BY [Employee List].Department, [Employee List].[Last Name], [Employee List].[First Name], [Employee List].[Seniority Date], [Employee List].[Vacation Elegibility], [Time off Booked].[Time Off Booked]
HAVING ((([Time off Booked].[Time Off Booked])="Vacation Approved" Or ([Time off Booked].[Time Off Booked])="Vacation Denied" Or ([Time off Booked].[Time Off Booked])="LOA Approved" Or ([Time off Booked].[Time Off Booked])="LOA Denied" Or ([Time off Booked].[Time Off Booked])="LOW"));
SELECT DISTINCT [Employee List].Department, [Employee List].[Last Name], [Employee List].[First Name], [Employee List].[Seniority Date], [Employee List].[Vacation Elegibility], Count([Time off Booked].[Time Off Booked]) AS [CountOfTime Off Booked], [Time off Booked].[Time Off Booked]
FROM [Employee List] INNER JOIN [Time off Booked] ON [Employee List].[Employee Number] = [Time off Booked].[Employee Number]
GROUP BY [Employee List].Department, [Employee List].[Last Name], [Employee List].[First Name], [Employee List].[Seniority Date], [Employee List].[Vacation Elegibility], [Time off Booked].[Time Off Booked]
HAVING ((([Time off Booked].[Time Off Booked])="Vacation Approved" Or ([Time off Booked].[Time Off Booked])="Vacation Denied" Or ([Time off Booked].[Time Off Booked])="LOA Approved" Or ([Time off Booked].[Time Off Booked])="LOA Denied" Or ([Time off Booked].[Time Off Booked])="LOW"));