This question is an exact duplicate of:
- Need better current datetime syntax 1 answer
WHERE (((tblNewCaseLog.CasePersonAddress) Like "*" & GetCriteria() & "*") AND ((DatePart("yyyy",
[DateLog])) Between DatePart("yyyy",Now())-1 And DatePart("yyyy",Now())))
ORDER BY tblNewCaseLog.DateLog DESC;
--Really need to improve old Access syntax to SQL 2008 for migration. Gracias!
A better performance efficient solution would be