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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cap second a third word

Status
Not open for further replies.

Ielamrani

MIS
Jul 7, 2005
183
US
Hi,
Hi,
I don't know if there is an aswer to this issue but I am going to ask anyway.
I know how to capitalize the first letter of a word when entered in text box.
Is there a code to cap the first letter of the second and third of word?

Example:

If a user enter in text box: i love soccer.
it should turn to: I Love Soccer.

Thanks in Advance
Ismail
 
Put this in the after update event of the control

Private Sub txtControlName_AfterUpdate()
Me!txtControlName = StrConv(Me!txtControlName,vbProperCase)
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top