In an Address Field How do I change all UCase to 1st Letter only U

B

Barb B

In Access DB, there is a field for address I've imported from another source
and it is all upper case. I want it to be normal capitalization, i.e., after
the street number, the 1st letter of each word needs to be UCase and the rest
of the word LCase.
 
F

fredg

In Access DB, there is a field for address I've imported from another source
and it is all upper case. I want it to be normal capitalization, i.e., after
the street number, the 1st letter of each word needs to be UCase and the rest
of the word LCase.

Create an Update query:

Update YourTable Set YourTable.[AddressField] =
StrConv([AddressField],3);

This will change 123 MAIN ST. to 123 Main Street
Unfortunately it will also change 123 MCDONALD STREET to
123 Mcdonald Street.
 
D

Douglas J. Steele

<picky>
It'll change 123 MAIN ST. to 123 Main St., not 123 Main Street
</picky>

--
Doug Steele, Microsoft Access MVP

(no private e-mails, please)


fredg said:
In Access DB, there is a field for address I've imported from another
source
and it is all upper case. I want it to be normal capitalization, i.e.,
after
the street number, the 1st letter of each word needs to be UCase and the
rest
of the word LCase.

Create an Update query:

Update YourTable Set YourTable.[AddressField] =
StrConv([AddressField],3);

This will change 123 MAIN ST. to 123 Main Street
Unfortunately it will also change 123 MCDONALD STREET to
123 Mcdonald Street.
 
F

fredg

<picky>
It'll change 123 MAIN ST. to 123 Main St., not 123 Main Street
</picky>

That's what happens when you 'hear' what you have written, rather than
'see' what you have written. <g>
 

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