Is this the logic you are trying to use??
For years between CurrentYear and CurrentYear-10 {Note: between includes endpoints}
get data for Month =1 to CurrentMonth and Day = 1 to CurrentDay
I'm just trying to understand what isn't working and hopefully get a sample of what the desired output would be.
Based on your example database, try this query:
Code:
SELECT tblComplaints.ID
, tblComplaints.ComplaintNumber
, tblComplaints.ComplaintDate
FROM tblComplaints
WHERE
(((Month([tblComplaints]![ComplaintDate]))<=Month(Date())) AND
((Day([tblComplaints]![ComplaintDate]))<=Day(Date())) AND
(Year([tblComplaints]![ComplaintDate])>=Year(Date())-10));