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

Ucase the start of each word after update 1

Status
Not open for further replies.

eon5

Technical User
Dec 31, 2007
47
ZA
Good day,

I got this code in the search files from “TheIceMan1” and it’s working very good to change All text immediately to Ucase.

Private Sub CompCat_KeyPress(KeyAscii As Integer)
If KeyAscii > 96 And KeyAscii < 123 Then
KeyAscii = (KeyAscii And 223)
End If
End Sub

I’m using this code in my forms but would also like to know if there is any way of changing only the 1st word to Ucase,

alminium side strip 20mm

“After Update”

Alminium Side Strip 20mm

Theuns
 
Have a look at the StrConv function and its vbProperCase parameter.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top