|
-
September 12th, 2001, 01:05 PM
#1
Convert the lowerc ase first letter in a Name to upper letter.
HI All,
I've a text control that allows a user to type in their name. How do I convert their first letter of their name in lowercase to uppercase automatically, soon as they tab to the next field.
Thanks in advance!
Beth
-
September 12th, 2001, 01:27 PM
#2
Re: Convert the lowerc ase first letter in a Name to upper letter.
Assume your text box name is "Text1".
private Sub Text1_LostFocus()
Dim strTemp as string
strTemp = Text1.Text
mid(strTemp, 1, 1) = UCase(Left(Text1.Text, 1))
Text1.Text = strTemp
End Sub
-
September 12th, 2001, 01:28 PM
#3
Re: Convert the lowerc ase first letter in a Name to upper letter.
Text1 = StrConv(Text1, vbProperCase)
David Paulson
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|