Upper Case for first letter

Sharad

Registered User.
Local time
Today, 12:36
Joined
Jan 23, 2003
Messages
26
When data is entered in a text box and Add Record button updates Table how do I make the first letter to show in Upper Case ? Thanks
:confused:
 
Check out Access help.........InputMask

Col
:cool:
 
...or in code

left(text,1) = uCase(left(text,1))
 
That code won't work as you require an object or a variable to assign a value.

Text0 = UCase(Left(Text0,1)) & LCase(Right(Text0,Len(Text0)-1))

That will work, as will

Text0 = StrConv(Text0, vbProperCase)
 
Upper Case

Text0 = UCase(Left(Text0,1)) & LCase(Right(Text0,Len(Text0)-1))

This is it. This worked great. 2nd Code did not work, maybe I did not give enough time.Thanks guys. :) :)
 
Mile - O - Phile

Thanks again for your input in re: Upper Case.

The code

Text0 = StrConv(Text0, vbProperCase)

converts all the first letters of all the words in a sentence to Caps. The other code converts only the firt letter to Caps :)
 
Glad your happy.

Regarding the diferences in capitalisation I knew; I just forgot to say. :D
 

Users who are viewing this thread

Back
Top Bottom