I have a Query that is working Mostly.
the problem stems from a Count Field. The Field in question has the Criteria "<Date()" the field is hovever not working for the only person who has days that meet the criteria and days that do not the Access is displaying the Total # Days? How do i get the system to list the count right.
"SELECT [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 History, 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 (((Count([Time off Booked].[Time Off Booked]))<Date()) AND (([Time off Booked].[Time Off Booked])="vacation approved"));"
If it helps here is the query code. I'm stumped here.
the problem stems from a Count Field. The Field in question has the Criteria "<Date()" the field is hovever not working for the only person who has days that meet the criteria and days that do not the Access is displaying the Total # Days? How do i get the system to list the count right.
"SELECT [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 History, 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 (((Count([Time off Booked].[Time Off Booked]))<Date()) AND (([Time off Booked].[Time Off Booked])="vacation approved"));"
If it helps here is the query code. I'm stumped here.