Changing a field from all CAPS to "proper" format in access

G

Guest

I know how to convert a field from all caps in excel, but can you do it in
access ?
 
R

Rick B

You can, but keep in mind that some names won't follow the rule...

McDonald
de la Rosa


It is a better idea to make your users format the field correctly.
 
G

Guest

You say "You can"..... so what is the formula ? Do you do it in an update
query or something along those line ????
 
G

Guest

In the AfterUpdate Event use: strNameLast = StrConv(strNameLast,
vbProperCase). Change 'strNameLast' to the field name of your database. In
some cases, like "O'CONNOR", trhe result is "O'connor". If the name is
entered like, "O CONNOR" the result will be "O Connor". So, only the first
letter after a space will be capatalized.
 
G

Guest

thanks - I'll try that.

Jim Ory said:
In the AfterUpdate Event use: strNameLast = StrConv(strNameLast,
vbProperCase). Change 'strNameLast' to the field name of your database. In
some cases, like "O'CONNOR", trhe result is "O'connor". If the name is
entered like, "O CONNOR" the result will be "O Connor". So, only the first
letter after a space will be capatalized.
 

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

Similar Threads

ALL CAPS to PROPER 14
Coverting all caps in a field to proper 3
Field formatting 3
format a text field 1
global text change 3
Initial Caps Problem 6
Field with Proper Case 2
proper case in access 4

Top