Formatting City Name

T

Tim

I have a column of city names that I'm including in my
report. They are stored in the table in all capital
letters. I need to display them on the report so that the
first letter of each word is in uppercase and the rest of
the letters in the word are in lowercase. The main
problem that I'm running into here is that many of the
cities have multiple words. For example:
NEW ORLEANS
SOUTH WILLIAMSON
PAGOSA SPRINGS
PLYMOUTH
etc.

Can you help me with a way to format these fields(either
on the report or in the query) so that the names show like
below:
New Orleans
South Williamson
Pagosa Springs
Plymouth

Thanks!
 
R

Rick Brandt

Tim said:
I have a column of city names that I'm including in my
report. They are stored in the table in all capital
letters. I need to display them on the report so that the
first letter of each word is in uppercase and the rest of
the letters in the word are in lowercase. The main
problem that I'm running into here is that many of the
cities have multiple words. For example:
NEW ORLEANS
SOUTH WILLIAMSON
PAGOSA SPRINGS
PLYMOUTH
etc.

Can you help me with a way to format these fields(either
on the report or in the query) so that the names show like
below:
New Orleans
South Williamson
Pagosa Springs
Plymouth

Check the help file for StrConv() function.

StrConv("NEW ORLEANS",3) Returns "New Orleans"
 

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