473,779 Members | 2,015 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Mouse Wheel in Access 97

I have been trying desperately for the past few days to figure out why
the MouseWheel solution that I retrieved from the Lebans website won't
work. The access database included with the solution responds to the
the wheel regardless of the button. In my application I get an error
message when I try to set the class. I'm hoping that I can get some
help (cause I feel really stupid right now).

Before we go too much further, I am using a Logitech Wheel mouse, does
this make any difference?

I am using Access 97 on a Windows 2000 Professional OS. I downloaded
the files from the Lebans website. I made sure the MouseWheel.dll is
in the folder where I'm trying to figure out how to make this work in
my application.

I open the A97MouseWheelHo okerver7.mdb file and open the form
(frmSampleData) . Clicking the buttons to turn on or off the mouse
wheel still allows me to scroll through the everything regardless of
which button I click.

When I try to put the code in my own application I get an error on
this statement:

Set clsMouseWheel = New MouseWheel.cMou seWheel

The error message reads: Run Time error '429' ActiveX component can't
create object.

Yes, I've inserted all the code from the A97MouseWheelHo okver97. I
tried registering the dll but get an error when trying to register
MouseHook.dll.
help!

Thanks in advance
Nov 12 '05 #1
6 6207
The dll isn't registered, if you post the errors you get when registering
maybe someone can help.

Terry
"AccessWhiz " <md*******@hotm ail.com> wrote in message
news:19******** *************** ***@posting.goo gle.com...
I have been trying desperately for the past few days to figure out why
the MouseWheel solution that I retrieved from the Lebans website won't
work. The access database included with the solution responds to the
the wheel regardless of the button. In my application I get an error
message when I try to set the class. I'm hoping that I can get some
help (cause I feel really stupid right now).

Before we go too much further, I am using a Logitech Wheel mouse, does
this make any difference?

I am using Access 97 on a Windows 2000 Professional OS. I downloaded
the files from the Lebans website. I made sure the MouseWheel.dll is
in the folder where I'm trying to figure out how to make this work in
my application.

I open the A97MouseWheelHo okerver7.mdb file and open the form
(frmSampleData) . Clicking the buttons to turn on or off the mouse
wheel still allows me to scroll through the everything regardless of
which button I click.

When I try to put the code in my own application I get an error on
this statement:

Set clsMouseWheel = New MouseWheel.cMou seWheel

The error message reads: Run Time error '429' ActiveX component can't
create object.

Yes, I've inserted all the code from the A97MouseWheelHo okver97. I
tried registering the dll but get an error when trying to register
MouseHook.dll.
help!

Thanks in advance

Nov 12 '05 #2
Terry Kreft previously wrote:
The dll isn't registered, if you post the errors you get when
registering
maybe someone can help.

Terry


There is no need to register it. It just has to be in the same folder as
the file that is using it.

I have just used the Mousewheel sample in an app and it worked first time.

Regards
Peter Russell


Nov 12 '05 #3
I click on the ActiveX Controls (in Tools), Register, browse to the
directory where the MouseHook.dll exists, click on MouseHook.dll, the
following error message pops up:

mousehook.dll cannot be added. Eiterh it is not an OLE control or it
requires a seperate setup utility.

The error message coincides with Lebans instructions which indicate
that the DLL does not need to be registered.

?????

"Terry Kreft" <te*********@mp s.co.uk> wrote in message news:<bp******* ***@newsreaderm 1.core.theplane t.net>...
The dll isn't registered, if you post the errors you get when registering
maybe someone can help.

Terry
"AccessWhiz " <md*******@hotm ail.com> wrote in message
news:19******** *************** ***@posting.goo gle.com...
I have been trying desperately for the past few days to figure out why
the MouseWheel solution that I retrieved from the Lebans website won't
work. The access database included with the solution responds to the
the wheel regardless of the button. In my application I get an error
message when I try to set the class. I'm hoping that I can get some
help (cause I feel really stupid right now).

Before we go too much further, I am using a Logitech Wheel mouse, does
this make any difference?

I am using Access 97 on a Windows 2000 Professional OS. I downloaded
the files from the Lebans website. I made sure the MouseWheel.dll is
in the folder where I'm trying to figure out how to make this work in
my application.

I open the A97MouseWheelHo okerver7.mdb file and open the form
(frmSampleData) . Clicking the buttons to turn on or off the mouse
wheel still allows me to scroll through the everything regardless of
which button I click.

When I try to put the code in my own application I get an error on
this statement:

Set clsMouseWheel = New MouseWheel.cMou seWheel

The error message reads: Run Time error '429' ActiveX component can't
create object.

Yes, I've inserted all the code from the A97MouseWheelHo okver97. I
tried registering the dll but get an error when trying to register
MouseHook.dll.
help!

Thanks in advance

Nov 12 '05 #4
Okay, I finally was able to get things going with the results that I
wanted. I ended up using the solution that was published in the MSKB
article KB308636 (http://support.microsoft.com/default...&Product=acc97)

In order to deploy this application to multiple computers without
having to register the dll on each machine, this is the solution I
created:

1. Create a new module.
2. Insert the following code:

Option Compare Database
Option Explicit
Declare Function DllRegisterServ er Lib "<fullpath>:\Mo useWheel.dll" ()
As Long
Declare Function DllUnregisterSe rver Lib "<fullpath>:\Mo useWheel.dll"
() As Long

3. Open the form and add the following:
Option Compare Database
Option Explicit
Private WithEvents clsMouseWheel As MouseWheel.cMou seWheel
Private varRegister As Variant

4. In the Form_Load event add the following:
varRegister = DllRegisterServ er
Set clsMouseWheel = New MouseWheel.cMou seWheel
Set clsMouseWheel.F orm = Me
clsMouseWheel.S ubClassHookForm

5. In the Form_Close event add the following:
clsMouseWheel.S ubClassUnHookFo rm
Set clsMouseWheel.F orm = Nothing
Set clsMouseWheel = Nothing
varRegister = DllUnregisterSe rver

6. Create a new sub in the form:
Private Sub clsMouseWheel_M ouseWheel(Cance l As Integer)
' Optionally add messages here to indicate Mouse Wheel is
inappropriate
' i.e. MsgBox "Mouse Wheel cannot be used here!"
Cancel = True
End Sub

This process has worked for me on Access 97.

md*******@hotma il.com (AccessWhiz) wrote in message news:<19******* *************** ****@posting.go ogle.com>...
I have been trying desperately for the past few days to figure out why
the MouseWheel solution that I retrieved from the Lebans website won't
work. The access database included with the solution responds to the
the wheel regardless of the button. In my application I get an error
message when I try to set the class. I'm hoping that I can get some
help (cause I feel really stupid right now).

Before we go too much further, I am using a Logitech Wheel mouse, does
this make any difference?

I am using Access 97 on a Windows 2000 Professional OS. I downloaded
the files from the Lebans website. I made sure the MouseWheel.dll is
in the folder where I'm trying to figure out how to make this work in
my application.

I open the A97MouseWheelHo okerver7.mdb file and open the form
(frmSampleData) . Clicking the buttons to turn on or off the mouse
wheel still allows me to scroll through the everything regardless of
which button I click.

When I try to put the code in my own application I get an error on
this statement:

Set clsMouseWheel = New MouseWheel.cMou seWheel

The error message reads: Run Time error '429' ActiveX component can't
create object.

Yes, I've inserted all the code from the A97MouseWheelHo okver97. I
tried registering the dll but get an error when trying to register
MouseHook.dll.
help!

Thanks in advance

Nov 12 '05 #5
The dll does not need to be registered is probably a big clue <g>.

It's not an ActiveX dll it's a classic C .dll which exports the functions
you need to call.

The sample database you downloaded with it has sample code to show how it
should be used.

Terry
"AccessWhiz " <md*******@hotm ail.com> wrote in message
news:19******** *************** ***@posting.goo gle.com...
I click on the ActiveX Controls (in Tools), Register, browse to the
directory where the MouseHook.dll exists, click on MouseHook.dll, the
following error message pops up:

mousehook.dll cannot be added. Eiterh it is not an OLE control or it
requires a seperate setup utility.

The error message coincides with Lebans instructions which indicate
that the DLL does not need to be registered.

?????

"Terry Kreft" <te*********@mp s.co.uk> wrote in message

news:<bp******* ***@newsreaderm 1.core.theplane t.net>...
The dll isn't registered, if you post the errors you get when registering maybe someone can help.

Terry
"AccessWhiz " <md*******@hotm ail.com> wrote in message
news:19******** *************** ***@posting.goo gle.com...
I have been trying desperately for the past few days to figure out why
the MouseWheel solution that I retrieved from the Lebans website won't
work. The access database included with the solution responds to the
the wheel regardless of the button. In my application I get an error
message when I try to set the class. I'm hoping that I can get some
help (cause I feel really stupid right now).

Before we go too much further, I am using a Logitech Wheel mouse, does
this make any difference?

I am using Access 97 on a Windows 2000 Professional OS. I downloaded
the files from the Lebans website. I made sure the MouseWheel.dll is
in the folder where I'm trying to figure out how to make this work in
my application.

I open the A97MouseWheelHo okerver7.mdb file and open the form
(frmSampleData) . Clicking the buttons to turn on or off the mouse
wheel still allows me to scroll through the everything regardless of
which button I click.

When I try to put the code in my own application I get an error on
this statement:

Set clsMouseWheel = New MouseWheel.cMou seWheel

The error message reads: Run Time error '429' ActiveX component can't
create object.

Yes, I've inserted all the code from the A97MouseWheelHo okver97. I
tried registering the dll but get an error when trying to register
MouseHook.dll.
help!

Thanks in advance

Nov 12 '05 #6
Peter,
Yes I was distracted by the Error 429, further information from the original
poster shows he was in error in trying to use the dll as an an ActiveX dll
rather than the classic C dll which it is.

Terry
"Peter Russell" <ru***@127.0.0. 1> wrote in message
news:me******** **************@ russellscott.bt internet.com...
Terry Kreft previously wrote:
The dll isn't registered, if you post the errors you get when
registering
maybe someone can help.

Terry


There is no need to register it. It just has to be in the same folder as
the file that is using it.

I have just used the Mousewheel sample in an app and it worked first time.

Regards
Peter Russell

Nov 12 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
3853
by: Ima Lostsoul | last post by:
Anyone have a simple way to disbale the wheel on a wheel mouse in Access Apps? I have tried the Lebans code and it does not work for my application.
0
2244
by: Jack | last post by:
Gday everyone, I'm dearly hoping Stephen Lebans is going to update his masterpeice to stop the mouse wheel scrolling to work on subforms *he has indicated this to me but of course beggers can't be choosers here so I have no idea when this would be done*. I'm just wondering if anyone has gotten around the problem some other way? --Original Thread---
1
3434
by: jv | last post by:
I have quite a few of continuous form and subform where I do allow scroll bars. I run into problems with the mouse wheel whenever the data on the form does not take up the whole page. In this instance, whenever a user uses the mouse wheel to scroll down, the first record disappears off the screen and they can't get it back unless they click on the Refresh button or Page Up. The mouse wheel never scroll back up to the first record. ...
6
2749
by: Susan Bricker | last post by:
Hi. Does anyone have a clue why my mouse wheel stopped working while I was working on the VB behind a form in MS/Access? I would swear that the mouse wheel was working a short time ago. I've checked that it isn't a malfunction of the mouse by going to other applications and trying the wheel. It works just fine. This is very frustrating. It's bad enough that I have a logic problem, but now my mouse is not working while trying to...
1
3109
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
7
2989
by: Martijn Mulder | last post by:
When the mouse is over a picture, the user can grow or shrink it by rolling the central mouse wheel. What behavior is typical when the user rolls the wheel away. Will the picture grow or shrink then?
1
1732
by: Don | last post by:
Since upgrading to Access 2007 from Access 2003, my mouse wheel no longer advances or reverses the records in form view. Did I miss a setting? It worked fine in Access 2003. TIA
1
2418
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 do not touch the wheel on top of the mouse. I can do anything else with the mouse, that is, move it around the form and click on controls. But if I turn the wheel, Access closes out the current form record and begins to scroll up or down thru...
3
1880
by: West55 | last post by:
I have an Access 2003 database I developed for one of my departments. I have been using Stephen Lebans' MouseWheelOnOff system to turn off the Mouse Wheel without any issues since I developed the database. Recently my IT department replaced all the PCs and now I am having issues with the Mouse Wheel Off. If one of the radio buttons has focus, the mouse wheel works and scrolls to the next record. If one of the text boxes has focus, the mouse...
0
9471
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10302
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10136
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8958
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6723
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5501
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4036
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 we have to send another system
2
3631
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2867
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.