Dear Scott, Al:
Al has provided a process to convert the first letter of the string to upper case and
leave the rest of the string unchanged, as in:
the big man > The big man
Scott, you *may* be asking to convert like this (the working of your question is a bit
confusing):
the big man > The Big Man
If so, and if you are talking about a textbox on a form called, say, "txtSomeWords",
then you can use the AfterUpdate event of the control to make this change, like so:
Private Sub txtSomeWords_AfterUpdate()
Me.txtSomeWords = StrConv(Me.txtSomeWords, vbProperCase)
End Sub
If you want to use this process in a query, IIRC, you must use "3" instead of
vbProperCase...
HTH
Fred Boer
P.S. Al, I think there was a typo in your example... I think you meant to write:
UCase(Left(SomeText,1)) & Mid(SomeText,2)
Al Campagna said:
Scott,
Using an Update query to change a field called [SomeText]...
Update To : UCase(Left(SomeText,1) & Mid(SomeText,2)
should do it.
--
hth
Al Campagna
Candia Computer Consulting - Candia NH
http://home.comcast.net/~cccsolutions
I would like to automatically change the first letter to upper case and keep the rest
intact of each word on a control of a form. Is there any functions to do this job?
Thanks,
Scott