PC Review


Reply
Thread Tools Rate Thread

Can I still navigate through forms using the Mouse Wheel?

 
 
=?Utf-8?B?Q2FkZ2V5?=
Guest
Posts: n/a
 
      26th Jan 2007
I have just upgraded to Access 2007 and can no longer roll through records in
my forms using the mouse wheel - my prefeered navigation method.

Is it possible to enable this?
 
Reply With Quote
 
 
 
 
Allen Browne
Guest
Posts: n/a
 
      27th Jan 2007
Access 2007 has a new MouseWheel event that you can use if you want the old
behavior. Code example below.

Personally, I *really* like the change. In the new version, the mousewheel
still scrolls your forms in Continuous or Datasheet view, but not in Form
view.


Private Sub Form_MouseWheel(ByVal Page As Boolean, ByVal Count As Long)
On Error GoTo Err_Handler
'Purpose: Move record on mouse wheel, as in previous versions.

If Count > 0 Then
RunCommand acCmdRecordsGoToNext
Else
RunCommand acCmdRecordsGoToPrevious
End If

Exit_Handler:
Exit Sub

Err_Handler:
If Err.Number = 2046& Then 'No next/previous record.
Beep
Else
MsgBox "Error " & Err.Number & ": " & Err.Description
End If
Resume Exit_Handler
End Sub

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Cadgey" <(E-Mail Removed)> wrote in message
news:3AF9F19A-8090-437A-8BC7-(E-Mail Removed)...
>I have just upgraded to Access 2007 and can no longer roll through records
>in
> my forms using the mouse wheel - my prefeered navigation method.
>
> Is it possible to enable this?


 
Reply With Quote
 
=?Utf-8?B?Q2FkZ2V5?=
Guest
Posts: n/a
 
      27th Jan 2007
Thanks - that's perfect. Allows me to enable the mousewheel in my main form
but not in my sub-forms, which is exactly what I wanted.

Appreciate the help.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I navigate using the mouse wheel in MS Access AbuMarwa Microsoft Access Forms 1 5th Jun 2008 05:56 PM
OL2007: Using mouse scroll wheel in week view to navigate =?Utf-8?B?SmFtZXM=?= Microsoft Outlook Calendar 2 22nd Jun 2007 04:40 PM
Mouse Wheel use in Forms =?Utf-8?B?VXJiYW4=?= Microsoft Access 1 23rd Apr 2007 11:09 PM
Navigate Excel with mouse wheel. =?Utf-8?B?R2VuZQ==?= Microsoft Excel Misc 4 17th Mar 2006 12:40 AM
Mouse Wheel And Forms Shadow Microsoft Access Form Coding 0 17th Nov 2003 10:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:12 AM.