S
Secret Squirrel
I have the following query trying to calculate a date. I'm trying to say if
the current date is greater than the "8MA" date in my query then it should
equal "1" and if not then it should equal "0". But they are all coming out as
1 even when they shouldn't be. Am I missing something here?
SELECT tblEmployees.ID, tblEmployees.LastName, tblEmployees.FirstName,
tblEmployees.StartDate, GetBusinessDay(DateAdd("m",8,[StartDate]),1) AS 8MA,
IIf(Date()>[8MA],1,0) AS 8M
FROM tblEmployees
ORDER BY tblEmployees.StartDate;
the current date is greater than the "8MA" date in my query then it should
equal "1" and if not then it should equal "0". But they are all coming out as
1 even when they shouldn't be. Am I missing something here?
SELECT tblEmployees.ID, tblEmployees.LastName, tblEmployees.FirstName,
tblEmployees.StartDate, GetBusinessDay(DateAdd("m",8,[StartDate]),1) AS 8MA,
IIf(Date()>[8MA],1,0) AS 8M
FROM tblEmployees
ORDER BY tblEmployees.StartDate;