How to disable keyboard and mouse?

  • Thread starter Thread starter Paul
  • Start date Start date
P

Paul

I have an event in a form which processes several functions in a module and
it could take up to 1-2 seconds to complete. Once it is completed, a message
will pop up to notify the user and the user click "ok" on the message and
the entire process is completed. The problem is user click on the "return"
button on the keyboard before the entire process (opo up message) is
appeared. As a result the code is breaking half way through it. Is there a
way I can disable the keyboard or the mouse temporary? Thanks
 
Yes, there is.

DoCmd.Hourglass True
and
DoCmd.Hourglass False

Be sure to include the False part in your error handler also so that you
will release the keyboard and mouse if an error should occur that the user
needs to respond to.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Access 07 and Win 8 Touchscreen 5
Logitech G Pro Gaming Mouse and Keyboard 7
Mouse Wheel 1
Swiftpoint Z Mouse 2
Windows XP keyboard/ mouse disabled 13
Wireless mouse, keboard 14
Best tool to recover PST files in 2026 0
disabling the mouse clicks 4

Back
Top