Need to determine length of field for query

B

Barry

I need to use a query that will show me in the address field all those
records where the address is longer than 35 characters. I want to be able to
shorten those to fit in a specific label. I can then use this syntax to also
abbreviate city names that are too long for the label
 
J

John W. Vinson

I need to use a query that will show me in the address field all those
records where the address is longer than 35 characters. I want to be able to
shorten those to fit in a specific label. I can then use this syntax to also
abbreviate city names that are too long for the label

Create a query based on the table with a calculated field

AddrLen: Len([address])

Put a criterion of

on this field to find all the verbose addresses.

Abbreviating the city might not be all that easy, unless you were to have a
table of city names and acceptable abbreviations; you may want to do these
manually if there aren't too many.
 

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

Top