Results 1 to 2 of 2
  1. #1
    accesshelp is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2010
    Posts
    1

    capital letters

    Hi.

    I need help in capitalize the first letter of the set of words.
    For example, if i enter jonh smith the output should be John Smith...so it dosen't matter how many characters or how many words i enter...

    is this possible? if so what code should be in input mask?



    Please help me out...

  2. #2
    Vera is offline Novice
    Windows XP Access 2003
    Join Date
    Jul 2010
    Location
    Belgium
    Posts
    9
    You can use vbProperCase - Converts the first letter of every word in string to uppercase.

    Use it in an after update event for instance.

    Private Sub Text0_AfterUpdate()
    Me.Text0 = StrConv(Me.Text0, vbProperCase)
    End Sub

    Only problem is names like McGregor, names with two capitals in it. Don't know how you can tackle this.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Custom Letters with Grouped Information
    By coolxten in forum Access
    Replies: 2
    Last Post: 05-10-2010, 10:59 PM
  2. Month to return in Capital Letters
    By Alex Motilal in forum Queries
    Replies: 3
    Last Post: 01-09-2010, 05:19 AM
  3. Removing all letters or all numbers from string
    By Hayley_sql in forum Programming
    Replies: 2
    Last Post: 09-16-2009, 02:01 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums