Number of characters in a field...

C

Carlos

I have a database of records that include city name and street name. How can
I create a query to find out the number of characters for the longest name
appearing in each of the two fields.

Thanks in advance...Carlos
 
J

John W. Vinson

I have a database of records that include city name and street name. How can
I create a query to find out the number of characters for the longest name
appearing in each of the two fields.

Thanks in advance...Carlos

Create a Query based on your table. In a vacant field cell type:

CityMax: Len([City])

and in another

StreetMax: Len([Street])

using your actual fieldnames of course. Don't select any other fields.

Change it to a Totals query and replace the default Group By with Max under
these fields.
 

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