A
Access rookie
Hallo,
I have a query that's not really returning the right results from a
calculated field. Here's the SQL:
SELECT tbl_empTraining.IDNumber, tbl_empTraining.FirstName,
tbl_empTraining.LastName, Employee.Address, Employee.City, Employee.State,
Employee.Zip, Employee.[Phone Number], tbl_empTraining.CPR,
DateAdd("yyyy",1,[CPR]) AS [CPR Expiry]
FROM tbl_empTraining INNER JOIN Employee ON tbl_empTraining.IDNumber =
Employee.[Employee Number]
WHERE (((DateAdd("yyyy",1,[CPR]))<=[Earlier than Expire Date for CPR
MM/DD/YY]));
I am getting dates greater than the criteria date I enter. Any help would be
greatly appreciated!
Fuddled,
John.
I have a query that's not really returning the right results from a
calculated field. Here's the SQL:
SELECT tbl_empTraining.IDNumber, tbl_empTraining.FirstName,
tbl_empTraining.LastName, Employee.Address, Employee.City, Employee.State,
Employee.Zip, Employee.[Phone Number], tbl_empTraining.CPR,
DateAdd("yyyy",1,[CPR]) AS [CPR Expiry]
FROM tbl_empTraining INNER JOIN Employee ON tbl_empTraining.IDNumber =
Employee.[Employee Number]
WHERE (((DateAdd("yyyy",1,[CPR]))<=[Earlier than Expire Date for CPR
MM/DD/YY]));
I am getting dates greater than the criteria date I enter. Any help would be
greatly appreciated!
Fuddled,
John.