--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
(e-mail address removed) www.pcdatasheet.com
From my file ---
Detecting a Right Mouse Click
Private Sub cmdTest_MouseDown(Button As Integer, _
Shift As Integer, x As Single, y As Single)
If Button = 1 Then 'acLeftButton
msgbox "You pressed the left button."
End If
If Button = 2 Then 'acRightButton
msgbox "You pressed the right button."
End If
End Sub
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.