Re: How do I capitalize?

anonymous_at_discussions.microsoft.com
Date: 10/29/04


Date: Thu, 28 Oct 2004 19:11:15 -0700

Create a new module:

Option Compare Database

Function properau(field As Control)
field = StrConv([field], vbProperCase)

End Function

Save module and call it lets say proper.

If you have created a form based on your table and lets
say the fieldname you want to capitalize the first letter
of is named LastName.In the properties of that field go to
the after_update and type in the following:

=properau([LastName])

regardless if you use uppercase or lowercase, after you
press enter to move to the next field, the first letter of
LastName will capitalise

>-----Original Message-----
>You can use an Input Mask to format the entry when the
user adds a record or
>a format if the records are already in the table and you
wish to format the
>output, but keep in mind that this will not work in a lot
of cases.
>
>McMillan would become Mcmillan
>De la Cruz would become De la cruz
>
>
>etc.
>
>I would recommend making your users do it right, not
forcing it. I don't
>think I've ever typed a name in my life where I did not
instinctively hit
>the shift key to capitalize the first letter. It's just
second nature.
>
>Rick B
>
>
>
>"Taufai" <Taufai@discussions.microsoft.com> wrote in
message
>news:80457BDF-2CA8-46C1-AFD0-47613E27E655@microsoft.com...
>> I want to capitalize the first letter of the last name
in my phone
>directory
>> access database
>
>
>.
>



Relevant Pages

  • Re: Capitalize first letter
    ... There are complex routines you could use to capitalize the first letter of ... There is also a "proper case" that will do it, ... that it is committed to the database with the first letter of every ... it to show New York, not new york.....even if the user entered new ...
    (microsoft.public.access.forms)
  • Re: Title Case
    ... >work in all objects of the database? ... about Proper Case, That Is, Every Word Capitalized - not title case as ... If you want to capitalize just the first letter of the text ...
    (microsoft.public.access.gettingstarted)
  • Re: Title Case
    ... > about Proper Case, That Is, Every Word Capitalized - not title case as ... If you want to capitalize just the first letter of the text ... > Private Sub txtTextfield_AfterUpdate ...
    (microsoft.public.access.gettingstarted)
  • How do I use VB to capitalize the first letter in a word?
    ... How do I create a procedure to convert a field values to proper case? ... (Capitalize the first letter of each word, and convert all others to lower ... Prev by Date: ...
    (microsoft.public.access.formscoding)
  • Re: Capitalize first letter of sentence
    ... Doesn't seem to do anything with ordinals either ... >> the first letter of the sentence is not capitalize. ... > From my typing class I learnt about the shift ...
    (microsoft.public.office.misc)