Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228

    Disable textbox click

    I have a textbox used as a background on a tabular form. What it does is turn green when a condition is met and basically highlights that record.



    I want to disable the click event. At the moment when clicked it brings this textbox to the front hiding the other textboxes that are meant to be in the front.


    If There is a better way of doing this I'm happy to adjust.

    Andy

  2. #2
    Minty is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    1,378
    First set its Tab Stop property to 0.
    Then on it's got focus event set the focus to somewhere else.
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  3. #3
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    Not sure what tab stop is but your suggestion works fine. Thanks a lot.

  4. #4
    Minty is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    1,378
    Quote Originally Posted by Homegrownandy View Post
    Not sure what tab stop is but your suggestion works fine. Thanks a lot.
    Its the property that if you tab through the controls (pressing the tab or enter key), sets whether the control is allowed to get focus or not.
    If you set TabStop to No you can only get to a control by explicitly clicking on it.
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

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

Similar Threads

  1. Replies: 1
    Last Post: 03-14-2017, 06:46 AM
  2. Report - disable click in header
    By Lukael in forum Reports
    Replies: 3
    Last Post: 05-26-2016, 01:45 AM
  3. Replies: 2
    Last Post: 03-17-2016, 04:52 PM
  4. Replies: 2
    Last Post: 01-26-2016, 08:08 AM
  5. Disable Mouse Right Click
    By data808 in forum Access
    Replies: 18
    Last Post: 03-10-2014, 05:58 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 - Senior Forums