Results 1 to 2 of 2
  1. #1
    vdanelia is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2011
    Posts
    38

    Exclamation Setting UpperCase, LowerCase and ProperCase To a Text or Combo Box

    Hello Dear friends, I have a question about TextCases in Access Text and Combo Boxes.



    When entering the data in text or combo box I want that the text case automatically be changed as I need.
    I use this VBA Code:

    Model.Text = UCase(Model.Text) 'Converts LowerCase To UpperCase
    Model.Text = LCase(Model.Text) 'Converts UpperCase To LowerCase
    Model.Text = StrConv(Model.Text, vbProperCase) 'Converts All To Normal (Proper) Case

    These codes work very well (Converting Cases as needed), but can't use space bar when writing two sentences(If i have to write "Hello World" it's writing Helloworld then i have to go back and then hit to space between Hello World)


    Then I put the code on Before Update Event, but getting the error "Run-Time Error '2115' The Macro or function set to the beforeupdate or validationRule property for this field preventing ms access from saving the data in the field


    What I did incorrectly, Please help!

    Thank you in advanced

  2. #2
    vdanelia is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2011
    Posts
    38
    Who is familiar with this, Need Help!

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

Similar Threads

  1. Replies: 4
    Last Post: 02-14-2011, 09:11 AM
  2. setting up option boxes for text values
    By wlumpkin in forum Access
    Replies: 4
    Last Post: 02-08-2011, 09:33 AM
  3. Changing table names from lowercase to uppercase
    By supernix in forum Database Design
    Replies: 1
    Last Post: 09-03-2010, 10:08 PM
  4. Uppercase to Lowercase
    By tigers in forum Reports
    Replies: 1
    Last Post: 09-28-2009, 10:48 AM
  5. Setting combo box properties
    By rathfam4 in forum Programming
    Replies: 1
    Last Post: 12-28-2005, 02:27 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