By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,647 Members | 1,618 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,647 IT Pros & Developers. It's quick & easy.

MouseWheel event does not trigger

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
>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.