How do I sort (query) by text string length in Access?

  • Thread starter Thread starter Guest
  • Start date Start date
To sort a query on the number of characters in Field1, enter this into the
Field row of your query:
Len([Field1])
and choose Ascending (or Descending) in the Sorting row under this.
 
Dear Bruce:

Create a column calculating Strlen(YourColumnName). Don't display it, but
sort by it.

Tom Ellison
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top