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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open form from listbox using right-click

Status
Not open for further replies.

rjurgens

MIS
Jul 9, 2003
37
GB
I have a listbox (using Access 2000) and it opens up a popup form by double-clicking. Is it possible to have it open up the popup by clicking the right-click instead?
 
You can play with MouseDown event instead of the DoubleClick one:
Private Sub Liste0_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = acRightButton Then
MsgBox "You pressed the right button."
End If
End Sub

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top