Results 1 to 3 of 3

Thread: Formatting text - First letter Uppercase only

  1. #1
    Join Date
    Jul 2007
    Posts
    2

    Formatting text - First letter Uppercase only

    I am looking for the format to use when I only want the first letter of a field in Uppercase. I can find all Lowercase or all Uppercase but don't know how to do first letter only. Thanks.

  2. #2
    Join Date
    Oct 2006
    Location
    Maitland NSW Australia
    Posts
    275

    Formatting Text

    Schuh

    You could use StrConv(string, conversion) where conversion is UpperCase, LowerCase or ProperCase.
    Suppose you have entered text in a field called LastName then the following code would convert the first letter of the LastName to a ProperCase e.g. jones would become Jones
    Private Sub LastName_AfterUpdate()
    LastName = StrConv(LastName, vbProperCase)
    End Sub

    Have a look at the Strconv function at this location http://support.microsoft.com/kb/253911/en-us.
    Allan

  3. #3
    Join Date
    Jul 2007
    Posts
    2

    Upper case first letter

    Thanks. I will try this.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •