Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disabling the mouse wheel 2

Status
Not open for further replies.

4321z

Programmer
Oct 21, 2003
45
0
0
GB
Hi,

I've got a form based on a table which i want to open for one record only in edit mode. However when i'm looking at the record and i move the mouse scroll wheel down, the form moves to a blank (i.e new) record. The only way i've stopped this from happening is to open the form in read-only mode but then i can't edit the record.I've also set set the forms property "Allow Additions" to NO, but this makes no difference.

Is there a way of disabling the mouse wheel? Or maybe another property i can set on the form to stop this happening.
 
Do an advanced search in this forum and you will find many postings on this topic.
 
set "Allow Additions" and "Allow Deletions" to "No" that should do it.
 
4321z,
Try this... forgot where I got it.

Private Sub MyButton_Click()
' Turns the Mouse Wheel Off
Dim blRet As Boolean
blRet = MouseWheelOFF
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top