Query to convert to Proper Case

B

Bikini Browser

Hey everyone!! Happy Valentines Day!

Does anyone have a query that will let me convert a field in a table to
Proper Case? I need every word in the field converted.

Can any one help me?

Thanks in advance...

Dale
 
J

Jeff Boyce

Are you saying you want the values in the field converted, or a query that
returns the values converted. The former is an update query, the latter a
select query.

You can use something like:

Expr1: StrConv([YourFieldName],3)

in a field in the query to display the contents of [YourFieldName] in Proper
Case (first letter of each word capitalized).

Just remember, Access is stupid, and will do exactly what you tell it to.
All of the following:

WILLIAM O'BRIEN
MacDonalds
samuel de clerke
jean-claude van damme
ab cde fghij

will be converted to:

William O'brien
Macdonalds
Samuel De Clerke
Jean-claude Van Damme
Ab Cde Fghij
 
Top