Query by character length in Access 2007

10 pts.
Tags:
Access 2007
Access 2007 form creation
Access query
Query Calculation
I want to see all the records with 3 or less characters in a specific field. My field contains both text and numbers. How can I do this?

Software/Hardware used:
MS Access 2007
ASKED: October 29, 2010  1:36 PM
UPDATED: August 20, 2013  12:58 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

You could do it using the Microsoft Access LEN function.

<pre>SELECT *
FROM your_table
WHERE LEN([your field]) <= 3</pre>

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • bhannah
    If you are using the Query Builder, then you can also limit the number of characters by only using three characters with your wildcard.
    1,170 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following