strwhere, I expect is going to be used in SQL, or at least as a legitimate SQL experession. You need to make sure you construct the criteria with the appropriate column names - perhaps like
strWhere = "Yearcolumnname = " & tempvars("DateLimit") & " AND AccountcolumnIDname = " &...