Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Upper to Mixed Case

Status
Not open for further replies.

mdr227

Programmer
Nov 17, 2000
114
US
Can someone tell me how to convert a field of text that is all upper case to mixed case (first letter of each word capitalized)?
 
Take a look at the StrConv function with 2nd argument = vbProperCase

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
There is an easy fix that can be done directly from table design.

In the "Input Mask" property type the following code:
>a<aaaaaaaaaaaa

Where the total number of "a" codes must match the value indicated in the "Field Size" property.

 
PHV

You're right of course ... but I've found that StrConv has a bug in it.

StrConv ("convert to proper case", vbProperCase )

blows up but

StrConv ("convert to proper case", 3 )

works even though vbProperCase = 3.
 
Golom, I guess your StrConv call was issued in a query and thus no VB constant is recognized.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top