Results 1 to 4 of 4
  1. #1
    yeldos is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Apr 2019
    Posts
    2

    Lowercase typing into textbox

    I have a form with the login and password textboxes. How to allow only lowercase typing into textbox? For example, even if a user has a caps lock turned on, the typing should be always lowercase.

  2. #2
    Micron is online now Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    You are concerned more about how the data looks, or how it's actually stored? You can us case functions (LCase, UCase) (lower,upper) on the form control and show it either way. I believe there is a PCase function as well, plus a strConv function. How they are used would determine if the data is stored with the desired case or just displayed. How it's stored shouldn't really matter.

    I suppose you could use an input mask, but I can't recall ever using one myself. Too much hassle for users most of the time.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  3. #3
    moke123's Avatar
    moke123 is offline Me.Dirty=True
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Ma.
    Posts
    1,879
    In addition to the functions Micron mentioned, There is also a StrComp() function, with a binary comparison, if you want the typed in password be required to match the case of the saved password.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    Access is not case sensitive by default. "A" = "a". Textbox format setting can force every character to display as lowercase. Set Format property with: < for lowercase, > for uppercase. However, the actual typed characters will be saved into field. Use VBA code with LCase() function to actually change the characters to be saved.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 6
    Last Post: 05-31-2017, 12:11 PM
  2. Lowercase and ignore
    By rmd62163 in forum Access
    Replies: 7
    Last Post: 07-31-2013, 06:35 PM
  3. Undo Typing in Unbound Textbox
    By June7 in forum Programming
    Replies: 4
    Last Post: 08-29-2012, 12:14 AM
  4. Changing table names from lowercase to uppercase
    By supernix in forum Database Design
    Replies: 1
    Last Post: 09-03-2010, 10:08 PM
  5. Uppercase to Lowercase
    By tigers in forum Reports
    Replies: 1
    Last Post: 09-28-2009, 10:48 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