473,406 Members | 2,713 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,406 software developers and data experts.

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 A97MouseWheelHookerver7.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.cMouseWheel

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

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

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

Terry
"AccessWhiz" <md*******@hotmail.com> wrote in message
news:19**************************@posting.google.c om...
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 A97MouseWheelHookerver7.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.cMouseWheel

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

Yes, I've inserted all the code from the A97MouseWheelHookver97. 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*********@mps.co.uk> wrote in message news:<bp**********@newsreaderm1.core.theplanet.net >...
The dll isn't registered, if you post the errors you get when registering
maybe someone can help.

Terry
"AccessWhiz" <md*******@hotmail.com> wrote in message
news:19**************************@posting.google.c om...
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 A97MouseWheelHookerver7.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.cMouseWheel

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

Yes, I've inserted all the code from the A97MouseWheelHookver97. 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 DllRegisterServer Lib "<fullpath>:\MouseWheel.dll" ()
As Long
Declare Function DllUnregisterServer Lib "<fullpath>:\MouseWheel.dll"
() As Long

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

4. In the Form_Load event add the following:
varRegister = DllRegisterServer
Set clsMouseWheel = New MouseWheel.cMouseWheel
Set clsMouseWheel.Form = Me
clsMouseWheel.SubClassHookForm

5. In the Form_Close event add the following:
clsMouseWheel.SubClassUnHookForm
Set clsMouseWheel.Form = Nothing
Set clsMouseWheel = Nothing
varRegister = DllUnregisterServer

6. Create a new sub in the form:
Private Sub clsMouseWheel_MouseWheel(Cancel 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*******@hotmail.com (AccessWhiz) wrote in message news:<19**************************@posting.google. 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 A97MouseWheelHookerver7.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.cMouseWheel

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

Yes, I've inserted all the code from the A97MouseWheelHookver97. 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*******@hotmail.com> wrote in message
news:19**************************@posting.google.c om...
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*********@mps.co.uk> wrote in message

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

Terry
"AccessWhiz" <md*******@hotmail.com> wrote in message
news:19**************************@posting.google.c om...
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 A97MouseWheelHookerver7.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.cMouseWheel

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

Yes, I've inserted all the code from the A97MouseWheelHookver97. 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.btinter net.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
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
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...
1
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...
6
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...
1
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
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...
1
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
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...
3
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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
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...

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.