Lynn_AccessUser
Registered User.
- Local time
- Today, 15:25
- Joined
- Feb 4, 2003
- Messages
- 125
I added the code referred to in the following article to turn off the mouse scrolling completely within Access.
http://support.microsoft.com/default.aspx?scid=kb;en-us;278379&Product=acc2000
However, my problem now is that my other code which was working before is no longer working.
For example, on the click event of a command button I had
Private Sub cmdAddNew_Click()
If IsNull(Forms!frmMain!subform!txtFieldname) Then
MsgBox "Please select an item from the list.", vbExclamation
Cancel = True
Else . . . .
The error message I am getting is a "Compile Error: Variable not defined" on the line
Cancel = True
If I dim Cancel As Integer then the button doesn't work at all. No error message, but it doesn't do anything either. If I remove all of the code for turning off the mouse scroll my button works.
Oh yea, the code for turning off the mouse scroll works even though my other code no longer does.
Thanks for the help!!
http://support.microsoft.com/default.aspx?scid=kb;en-us;278379&Product=acc2000
However, my problem now is that my other code which was working before is no longer working.
For example, on the click event of a command button I had
Private Sub cmdAddNew_Click()
If IsNull(Forms!frmMain!subform!txtFieldname) Then
MsgBox "Please select an item from the list.", vbExclamation
Cancel = True
Else . . . .
The error message I am getting is a "Compile Error: Variable not defined" on the line
Cancel = True
If I dim Cancel As Integer then the button doesn't work at all. No error message, but it doesn't do anything either. If I remove all of the code for turning off the mouse scroll my button works.
Oh yea, the code for turning off the mouse scroll works even though my other code no longer does.
Thanks for the help!!