Results 1 to 2 of 2
  1. #1
    gstylianou is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Dec 2013

    Disable Shift Control

    Dear friends,

    In my database i want to have 2 command buttons in order to enabled and disable the Shift control. Does anyone know the vba code which i must use for each case?


  2. #2
    John_G is offline VIP
    Windows XP Access 2003
    Join Date
    Oct 2011
    Ottawa, ON (area)
    As far as I know, you can't disable the keys directly. What you have to do is use the Key Preview event to check every keystroke to see if the shift/control key was pressed, and then cancel the event if it was.

    If you are working with data entered through a form control, you can use an input mask to allow only lower case, or change the data to lower case in the After Update event.

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

Similar Threads

  1. change focus; disable control
    By markjkubicki in forum Forms
    Replies: 8
    Last Post: 07-30-2013, 10:31 AM
  2. Alt + Shift + Tab -- No Icon!
    By LindaRuble in forum Programming
    Replies: 7
    Last Post: 03-18-2013, 03:15 PM
  3. Password Form With Enable/Disable Shift Key
    By burrina in forum Code Repository
    Replies: 0
    Last Post: 12-24-2012, 10:53 PM
  4. Code Error on Form To Disable Shift Key
    By burrina in forum Forms
    Replies: 3
    Last Post: 12-24-2012, 07:27 PM
  5. Help with Shift+F2 needed
    By Rackrunner in forum Access
    Replies: 1
    Last Post: 05-13-2011, 05:56 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