Going back to your original post, the reason you are getting and datatype mismatch is because Count(State) returns a number, but in your criteria you are adding the text value of the State's name. I suspect what you really want is not the count of how many States are in your table, but rather...