Hi All, I'm trying to limit query results from a table to only records within which a specific field contains alpha characters and the field is 4 characters long. Though the field is a text field it may contain "A1" "AA1" "AAA1" and "AAAA". The last "AAAA" is the only record I would want to pull with the query.
I've tried the query below. The alpha criterion works but not the length criterion. It still returns "AA" for example.
SELECT flkpBoat.BoatCode, flkpBoat.BoatName
FROM flkpBoat
WHERE flkpBoat.BoatCode Like "[A-Z]*" AND Len(flkpBoat.BoatCode)=4;
I've tried the query below. The alpha criterion works but not the length criterion. It still returns "AA" for example.
SELECT flkpBoat.BoatCode, flkpBoat.BoatName
FROM flkpBoat
WHERE flkpBoat.BoatCode Like "[A-Z]*" AND Len(flkpBoat.BoatCode)=4;