Does [criteria] refer to an actual field in your query? If not, you need to replace it w/ the actual name of that field you're searching on.
ex. (... ,"[InvoiceID] =" & variable)
The reason I'm confused is because [criteria] is also used by the function: (DAvg(expr, domain[, criteria])) and is...