Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting a mouse wheel to scroll down form, not through records

Status
Not open for further replies.

clickster

MIS
Feb 19, 2002
89
US
I have a single form that has a vertical scroll bar on it because it is about 3 screens in length. When I try to use the wheel on my mouse to scroll down the form, it instead scroll forward and backward through the records. Is there any way to make a wheel mouse scroll the screen rather than through records?
 
That's close to what I'm looking for, but not quite. Is there any way to simply disable the wheel altogether so that it can't be used for anything? I'm not very good with code, so if you know of any non-code way of doing things (i.e. For "On Load", create a macro that chooses RunCommand and select...) it would be best, but any help will be greatly appreciated. Thank you.
 
I'm not sure how to disable the wheel, but you may want to try changing the "Cycle" setting in your form's properties menu from "All Records" to "Current Record".

Good Luck...
 
I got it to work. I had to mess around a bit though. After copying the module over and putting the DLL in the same folder as my database, I had to go into the form on the sample database and look at its code. I put the following into "OnLoad" for the form and it worked:

Dim blRet As Boolean
blRet = MouseWheelOFF

Or you could create a button and have it launch that code when you click on it to turn the mouse wheel off. To turn it back on, use the same code, but replace OFF with ON.
 
For anyone out there who wants to disable the mousewheel during ADD or EDIT, here's a different (and I think quite clever) approach in this posting:
I wish I had seen it before I implemented the mousewheel.dll Lebans gives. It's not that it has given me any trouble, but this is far more elegant. It is contained within the database itself and also effectively disables any other ways of moving off the record until the user saves it.
NNone
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top