But it returned the error message "Data type mismatch in criteria expression"

I figured out the reason for this error is because some of the values don't contain a value for building. I tried to set the parameter so that the WHERE also included a "AND Building IS NOT NULL" to eliminate get rid of the null values. But the same error is still coming up.