The criteria expression is the part of the query containing the conditions, as in WHERE
. Look at those specifically. The error message means you're comparing two things (this equals that, or this less than that, etc.) that are of two different, and incompatible types (comparing a number to a string, for example).
You can find out which condition is causing the problem by deleting them one at a time and testing again each time until the error disappears.
Make sure you save a copy of your original query, or make a new copy for testing.