lower case (1 Viewer)

kitty77

Registered User.
Local time
Today, 17:19
Joined
May 27, 2019
Messages
712
I have a form that has a field (name) that has all CAPS. How can I create a command button (vba) that will convert that field to lower case?

Thanks.
 

kitty77

Registered User.
Local time
Today, 17:19
Joined
May 27, 2019
Messages
712
Is there any way to make the the first letter of each word CAP and the rest lower case?
Example: SUNSHINE STRORAGE SYSTEMS, would be Sunshine Storage Systems

Thanks.
 

MajP

You've got your good things, and you've got mine.
Local time
Today, 17:19
Joined
May 21, 2018
Messages
8,546
Read the link there are other conversions
Code:
Me.ControlName = strConv(me.controlname, vbPropercase)
vbUpperCase1Converts the string to uppercase characters.
vbLowerCase2Converts the string to lowercase characters.
vbProperCase3Converts the first letter of every word in a string to uppercase.
vbWide4Converts narrow (single-byte) characters in a string to wide (double-byte) characters.
vbNarrow8Converts wide (double-byte) characters in a string to narrow (single-byte) characters.
vbKatakana16Converts Hiragana characters in a string to Katakana characters.
vbHiragana32Converts Katakana characters in a string to Hiragana characters.
vbUnicode64Converts the string to Unicode using the default code page of the system. (Not available on the Macintosh.)
vbFromUnicode128Converts the string from Unicode to the default code page of the system. (Not available on the Macintosh.)
 

GPGeorge

Grover Park George
Local time
Today, 14:19
Joined
Nov 25, 2004
Messages
1,888
Is there any way to make the the first letter of each word CAP and the rest lower case?
Example: SUNSHINE STRORAGE SYSTEMS, would be Sunshine Storage Systems

Thanks.
No automated process is going to be perfect. What you refer to here, i.e. Proper Case, won't account for names like "The Franklin O'Donohue Corp" and others of that type. The final step will always involve the use of the basic Human Eyeball.
 

Users who are viewing this thread

Top Bottom