S smpayne69 Registered User. Local time Today, 14:35 Joined Dec 26, 2005 Messages 34 Feb 9, 2006 #1 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!
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!
kaveman Registered User. Local time Today, 15:35 Joined May 12, 2004 Messages 58 Feb 9, 2006 #2 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
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
A antomack Registered User. Local time Today, 20:35 Joined Jan 31, 2002 Messages 215 Feb 9, 2006 #3 You need to use the Len function in the query as below SELECT * FROM YourTableName WHERE Len(YourFieldName) = 10;
You need to use the Len function in the query as below SELECT * FROM YourTableName WHERE Len(YourFieldName) = 10;
S smpayne69 Registered User. Local time Today, 14:35 Joined Dec 26, 2005 Messages 34 Feb 9, 2006 #4 Great! Thanks so much for you help!