473,401 Members | 2,125 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

Access form stop Scroll button

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

Thanks,
Yogesh
Jul 18 '07 #1
1 2598
missinglinq
3,532 Expert 2GB
Access 2007 has the ability to do this built in. For other versions you have to use an add-in.

Stephen Lebans has a sample database that does this and can be downloaded at:

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

Download and unzip the db and take a look. In your db and goto File > External Data > Import and import the module modMouseHook from the sample database.

You need to place a copy of the MouseHook.dll file in the same folder as your database. It’s normally a Hidden file, so you’ll have to unhide it, Find it, then copy it to the folder.

In the first form to load in your db use this code:

Expand|Select|Wrap|Line Numbers
  1. Private Sub Form_Load()
  2.    ' Turn off Mouse Scroll
  3.     blRet = MouseWheelOFF
  4. End Sub
Good Luck!

Linq ;0)>
Jul 18 '07 #2

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

Similar topics

0
by: 23s | last post by:
Is there any way I can send a vertical value to a form's scroll position? I have a full-screen form that, at launch, contains an empty tab sheet. At run time, the user can dynamically append a...
1
by: leemansiuk | last post by:
hi, i wonder if anyone can help with this problem i cant seem to work out. i have a bound form linked to an orders table, including some required fields. when i use the navigation buttons of the...
15
by: ApexData | last post by:
Hello I'm using Access2000, SplitDB, ALL MenuBars are Off. The AccessTitleBar(BlueBar) displays at the top with its (Min/Max/) Controlbox. I have a MainMenuForm (Modal-On), that Calls a...
0
by: Eric | last post by:
When I use the scroll up and down button in my form it shows an empty form and some times it save blank record. Is it possible i will lock my form if any one use the scroll button of mouse my form...
2
by: Eran.Yasso | last post by:
Hi, Can i cause scrollbars to be activate only on part of the form? Meaning" I have buttons in top of form which i don't want scrollbars to scroll this button. I want this button to be...
1
by: RamanS | last post by:
I have a form with 2 tabs and a header. Tab1 has some text fields on it and button. At form load the 2nd tab is not visible. When i enter some text in the fields under Tab1 and then click the...
7
by: robert.waters | last post by:
I have an Access database frontend linked via ODBC to a large (gigabytes) mysql database. I need to view a large amount of data in a a textbox (variable up to 300K), but I receive a 'there isnt...
2
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
3
by: =?Utf-8?B?TUdFQWRtaW4=?= | last post by:
I have a database that uses several forms. In one of the forms there is main form for the patient information, and then I have another form to add updates to their records. I have a unbound textbox...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.