locked
Need to detect a click on a locked/disabled control RRS feed

  • Question

  • I have a field that for certain users cannot be updated. In these cases, I set the control to Locked = True and Enabled = False. I want to be able to inform the users when they cannot modify this control so if they click on it, I want to display a message. My click event is never firing. I'm assuming my settings are preventing it. How should I do this? Thanks.
    Tuesday, November 8, 2016 2:18 AM

Answers

  • You'll have to set Enabled to True, otherwise clicks won't register.

    Regards, Hans Vogelaar (http://www.eileenslounge.com)

    Tuesday, November 8, 2016 6:44 AM

All replies

  • You'll have to set Enabled to True, otherwise clicks won't register.

    Regards, Hans Vogelaar (http://www.eileenslounge.com)

    Tuesday, November 8, 2016 6:44 AM
  • I believe you could place a transparent command button on top of the control, and use the Click event of that button to do what you want.

    Dirk Goldgar, MS Access MVP
    Access tips: www.datagnostics.com/tips.html

    Tuesday, November 8, 2016 11:42 PM