Results 1 to 4 of 4
  1. #1
    tweety is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Nov 2012
    Posts
    126

    capitalize text on field entry in form

    Is there a way of capitalizing text into a field? so once you type so text into a field, It Looks Like This?



    Its so the the name fields have the first and last name starts uppercase and the rest lower case

    also to convert the whole field to upper case, such as zip code or post code

    thanks

  2. #2
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,538
    Initial caps:
    In your table, in the properties for the field in question, set the input mask as >L<????????????

    All CAPS:

    Set the mask to >L

  3. #3
    tweety is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Nov 2012
    Posts
    126
    By using this input mask only the first letter is upper case >L<???????????

    if i have in one field 2 or 3 words e.g Access forums, i would like it to display it like Access Forums

    Any Ideas? Thanks

  4. #4
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Sure! You can use the StrConv Function with the vbProperCase Parameter:

    Code:
    Private Sub ControlName_AfterUpdate()
      Me.ControlName = StrConv(Me.ControlName, vbProperCase)
    End Sub


    Linq ;0)>
    Last edited by Missinglinq; 02-14-2013 at 06:07 PM.

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

Similar Threads

  1. Replies: 4
    Last Post: 11-30-2012, 03:09 PM
  2. Replies: 3
    Last Post: 09-20-2012, 11:23 AM
  3. Replies: 5
    Last Post: 08-08-2012, 01:30 PM
  4. To open a form, sub form if text box entry exist in Query
    By george.vniekerk in forum Programming
    Replies: 2
    Last Post: 08-08-2011, 12:50 AM
  5. Capitalize
    By DizzyD in forum Database Design
    Replies: 3
    Last Post: 07-08-2010, 07:18 PM

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