Uppercase 1st Letter

  • Thread starter Thread starter Dan
  • Start date Start date
D

Dan

How do I format a field so that the first letter is always capitilized. I
know to use the greater then sign to display text as all caps, but I just
want to make sure the first letter in a customers first/last name is
capitilized.
 
Dan

Are you sure you need to do that in the table?

A more common approach would be to use the UCase() function in a query, and
use the query results for display.

Regards

Jeff Boyce
Microsoft Access MVP

--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.

Any code or pseudocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer
possible/necessary.
 
I couldn't tell from the description if this is being used on a single field
containing [FullName] or on a more atomic field containing [LastName].

My suggestion applied to the single field, single fact scenario.

.... and I'd never suggest that you or your wife attempt to lowercase her "D"
.... <g>!

Regards

Jeff Boyce
Microsoft Access MVP

--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.

Any code or pseudocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer
possible/necessary.

KenSheridan via AccessMonster.com said:
Jeff:

Wouldn't StrConv([CustomerName],3) be better than the UCase() function?
With
names I think I would convert the stored data itself, but with a means of
overriding it to take account of names like Vincent van Gogh and Fiona
MacDonald (who happens to be my wife; it would take a braver man than me
to
reduce her 'D' to lower case!).

Ken Sheridan
Stafford, England

Jeff said:
Dan

Are you sure you need to do that in the table?

A more common approach would be to use the UCase() function in a query,
and
use the query results for display.

Regards

Jeff Boyce
Microsoft Access MVP
 
Back
Top