I’m trying to pull dates by the date I enter and it will also pull from the previous 12 months not including the entire month from my date I entered only the date.
So, if I enter 4/5/2007 in a parameter query I would see data from the date I entered and the range 3/01/2006 thru 3/31/2007. I’ve tried this but I’m getting the same year.
Like "*" & [Enter:AssignDate] & "*" Or Between CDate(CStr("1/1/" & DatePart("yyyy",Date()))) And CDate(CStr(DatePart("m",Date())) & "/1")-1
So, if I enter 4/5/2007 in a parameter query I would see data from the date I entered and the range 3/01/2006 thru 3/31/2007. I’ve tried this but I’m getting the same year.
Like "*" & [Enter:AssignDate] & "*" Or Between CDate(CStr("1/1/" & DatePart("yyyy",Date()))) And CDate(CStr(DatePart("m",Date())) & "/1")-1