How to disable mouse wheel for Access only

  • Thread starter Thread starter RACA
  • Start date Start date
R

RACA

Guest
My application retrieves a recordset with some records. Each record is presented separately on a form and there is a "next" button to move on. For each record it allows pressing a button on the form for activating MS Word that in turn opens a relevant document.

The problem is that while the MS Word document is open, mouse wheel scrolling scrolls the recordset in the MS Access application, so to move to other records, up or down. It is strange since the MS Word application is the active window at that time.

I would like to disable the mouse wheel for the MS Access while keeping it active for the MS Word. So a solution of disabling the mouse wheel totally is not what I'm looking for.

Thanks in advance
 
Last edited:
Welcome to the forum!

Searching the forum is a great way to discover and learn the answers to your Access programming questions.
 
Answer's here

Hi guy,
I've the same problem as you,
You can find an answear as me

www.lebans.com
Hope that help

The Anh
RACA said:
My application retrieves a recordset with some records. Each record is presented separately on a form and there is a "next" button to move on. For each record it allows pressing a button on the form for activating MS Word that in turn opens a relevant document.

The problem is that while the MS Word document is open, mouse wheel scrolling scrolls the recordset in the MS Access application, so to move to other records, up or down. It is strange since the MS Word application is the active window at that time.

I would like to disable the mouse wheel for the MS Access while keeping it active for the MS Word. So a solution of disabling the mouse wheel totally is not what I'm looking for.

Thanks in advance
 
1-Go to this site: http://www.databasedev.co.uk/downloads.html

2-Scroll down, and download the file "mouse_scroll_2000.zip"

3-Unzip it.
4-Place the file "MouseHook.dll" in the same folder where your database is.
5-From your database, import the module "modMouseHook" that exists in the database "mouse_scroll_2000.mdb"
6-Inside each Form_Load event, place teh following two lines of code:

Dim blRet As Boolean
blRet = MouseWheelOFF(False)

Good luck
Michel
 

Users who are viewing this thread

Back
Top Bottom