How to bypass onClick event when double clicking

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have event code in onClick which I do NOT want to run when I double-click.
How do I not run it?
 
You can't stop it. You'll need to leave it out of your module if you want to
use the double-click event. By design, a double-click also triggers the
click event and its code will run before the double-click event's code does.
 
In the onclick event can I find out if the dble-click event has occured so I
can skip the code?
 
You could set a global variable in the DblClick event and then test that in
the Click event. However, the Click event occurs before the DblClick event,
so I don't know that that test will be meaningful -- you likely would be
testing before the variable had been set.

And if it did work, you'd need to reset the variable somewhere after the
Click event tests it.
--

Ken Snell
<MS ACCESS MVP>
 
Back
Top