Query specific length

smpayne69

Registered User.
Local time
Today, 14:35
Joined
Dec 26, 2005
Messages
34
I have a query in which I need to pull all values from a field that is exactly 10 characters in length (Alpha or Numeric). Can anyone help me with this?

Thank you!
 
Create a new field on your query to calculate the length:

Length:Len([field])

then set your criteria to only return records where this field is 10
 
You need to use the Len function in the query as below

SELECT * FROM YourTableName
WHERE Len(YourFieldName) = 10;
 

Users who are viewing this thread

Back
Top Bottom