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

First letter cap in an expression

Status
Not open for further replies.

sto

Programmer
Nov 26, 2001
14
US
How would you change the case on the first letter of a field in an expression.
 
STO,

fld = Ucase(Mid(fld, 1 ,1)) & Mid(fld, 2, Len(fld)-1)

Didn't try it, but that's the general idea.

HTH,
Wayne
 
An example to get you started

?ucase(left("test",1))
T
Robert Berman
Data Base consultant
Vulcan Software Services
thornmastr@yahoo.com
 
Hi

If you are using Access 2K or XP the Proper() might help you,

if you are using Access97 or before then Proper() is not available, if you mean ONLy fisrt letter of first word, then =Upper(Left(txtBox.1)) & Mid(txtBox,2) should do it

Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
UK
kenneth.reaySPAMNOT@talk21.com
remove SPAMNOT to use
 
Hi

OOPS, switched to wron language there

=UCASE(Left(txtBox.1)) & Mid(txtBox,2) should do it

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
UK
kenneth.reaySPAMNOT@talk21.com
remove SPAMNOT to use
 
Hi,
Maybe you can use the StrConv function.

Syntax: StrConv(string,vbProperCase) Hope it helps. Let me know what happens.
With regards,
PGK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top