I have a Short Text column in Access called ZIP. It has to be a Short Text.
I'm trying to select the first 4 characters of each ZIP and see if it's below a certain number.
MY SQL is:
SELECT *
FROM [WORK]
WHERE LEFT(ZIP, 4) < 300;
I get an error that says "Data type mismatch in criteria expression." which I assume is because the ZIP field is a Short Text and not a number. How would I go about this?
I figured it out, I just needed to put single quotes around the 300.
I ended up with: