473,508 Members | 2,425 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Turning off the Scroll Wheel in Access 2003

47 New Member
I've got a patient enrollment application (functionally similar to a customer/order entry application). My problem comes when users accidentally hit the scroll wheel -- it can take them to a different patient.

I'm looking for a VB way of preventing users from changing members with the mousewheel. Any ideas?

(I'm told that this is easy on later versions of Access, but I'm stuck with what I've got.)

Thanks for the help


Dante
Nov 12 '08 #1
5 6385
SUSAN MALAN
4 New Member
I don't know about the VBA , but if you go into your design view and then to the Properties of the Sheet Their is an Option whereby you can go to the ScrollBar menu on the "ALL" Tab and then turn it "Off" so that it doesn't show at all in your Formview. I am not sure if that is what you requested , but I have done that numerous times to ensure that the Employees don't see the Scroll Bars
Nov 20 '08 #2
Delerna
1,134 Recognized Expert Top Contributor
I would like to know the answer to this too?
Without having to resort to buying mice without wheels????
Nov 20 '08 #3
mandanarchi
90 New Member
The only thing I could think of at this point is using the 'MouseWheel' event and a 'DoCmd.CancelEvent'; but I'm assuming you've probably already tried this?

Or there is always the good old 'hammer-to-the-hand-of-whoever-scrolls' method.. might get you in a little trouble tho ;)
Nov 20 '08 #4
DonRayner
489 Recognized Expert Contributor
I've got a patient enrollment application (functionally similar to a customer/order entry application). My problem comes when users accidentally hit the scroll wheel -- it can take them to a different patient.

I'm looking for a VB way of preventing users from changing members with the mousewheel. Any ideas?

(I'm told that this is easy on later versions of Access, but I'm stuck with what I've got.)

Thanks for the help


Dante
This should help you. The information about doing it completly in access is about half way down the page.

http://support.microsoft.com/kb/278379
Nov 20 '08 #5
missinglinq
3,532 Recognized Expert Specialist
Susan misread the original post; we're talking bout the Scroll Wheel on the mouse, not the ScrollBar.

I haven't picked apart the code from Micro$oft, but Stephen Lebans hack has been used by many of us for many years. This link goes to a download for his sample database.

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

First, download and unzip the db and take a look. Go into your db and goto

File > External Data > Import

and import the module

modMouseHook

from the sample database.

Next make sure you have the included file,

MouseHook.dll

in the same folder your database resides in. The following code needs to run before the mousewheel will be locked:

Expand|Select|Wrap|Line Numbers
  1. Private Sub Form_Load()
  2.  'Turn off Mouse Scroll
  3.  blRet = MouseWheelOFF
  4. End Sub
If you have one form that always loads first in your db, place the code there. If the first form to load varies, place the same code in each form.

You should be set now.

Linq ;0)>
Nov 20 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

6
3074
by: amirkarger | last post by:
I have a simple "quickbrowse" menu that does this: <form> <select name="quickbrowse" onchange="go(this)"> <option selected value="">go to a tool...</option> <option value="#tool1">Great tool...
3
3971
by: Devonish | last post by:
I have a form designed as a Continuous form which displays one record per line. Taking account of the header and footer and the size of the screen, I can display 30 records at a time. I can see...
12
4215
by: Scott Simonson | last post by:
Does anyone have any idea why Access's module editor doesn't scroll with the mouse. I noticed this behavor in Access 2k also. While viewing code in a module (or any thing for that matter) the wheel...
1
4019
by: Otie | last post by:
Can this be fixed? I have a combo box which is filled with lots of choices on a certain form. I click on the combo box and want to scroll down through the items using my mouse's scroll wheel....
1
3091
by: Marcin | last post by:
Im using MS Access 2000. i have a main form and ona subform that is scrolled vertically. unfortunately i use mouse scroll to scroll this subform. I appreciate your help
1
3194
by: kallol | last post by:
I have a simple HTML page where I have a form with in a <div style="height: 600px; width: 100%; overflow: auto;">. The mentioned div styles are mandatory to get the expected behavior of the div. ...
2
5498
NeoPa
by: NeoPa | last post by:
This may well only work in Office 2003 but may be worth trying for earlier versions. The article I found (Add support for the scroll wheel to the Microsoft Visual Basic for Applications 6...
1
2603
by: ykhamitkar | last post by:
Hi there, I have created one ms access form which based on a table. Now when I use scroll wheel of my mouse on the form it automatically changes records. How can I disable scroll wheel ...
1
2404
by: Paul Brady | last post by:
First, apologies iif this is an old problem. I do read this group, but I may have missed it. When I open a form in A2K to put data into a record (or create a new record), all is well provided I...
0
7224
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7323
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7379
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7038
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5625
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5049
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4706
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1550
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
415
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.