469,935 Members | 1,983 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,935 developers. It's quick & easy.

MouseWheel event does not trigger

I have a data entry form. I am trying to avoid users accidentally using
the mouse wheel and saving an incomplete record (or saving record that
skips the validation routine).

In Mousewheel event, I have a boolean variable (blnMousewheel) that is
set to true. In the beforeupdate form event, an If statement cancels
any changes if the blnMousewheel is true. It also sets the boolean
variable to false.

It works most of the time, but some times, in the before update event,
the blnMousewheel is false (when it should be true) and the record is
saved. This could have happened only if the mousewheel event had not
triggered.

I am not sure why the mousewheel event is not triggered. If anyone has
experience with this, please let me know.

-Niranjan

Nov 13 '05 #1
1 2038
>I have a data entry form. I am trying to avoid users accidentally using
the mouse wheel and saving an incomplete record (or saving record that
skips the validation routine).

In Mousewheel event, I have a boolean variable (blnMousewheel) that is
set to true. In the beforeupdate form event, an If statement cancels
any changes if the blnMousewheel is true. It also sets the boolean
variable to false.

It works most of the time, but some times, in the before update event,
the blnMousewheel is false (when it should be true) and the record is
saved. This could have happened only if the mousewheel event had not
triggered.

I am not sure why the mousewheel event is not triggered. If anyone has
experience with this, please let me know.

-Niranjan


You might try this:

http://www.lebans.com/mousewheelonoff.htm

Make sure you do not have any margins set in any textboxes. That caused
problems for me.
Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by deko | last post: by
reply views Thread by Dennis | last post: by
1 post views Thread by Qwert | last post: by
1 post views Thread by Nicholas Shewmaker | last post: by
4 posts views Thread by tlemcenvisit | last post: by
3 posts views Thread by Dave K | last post: by
reply views Thread by WaterWalk | last post: by
1 post views Thread by =?Utf-8?B?UmljaA==?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.