I'm trying to create a right-click event on a listbox that will copy selected listbox item(s) to a temp table. So far, I've got this code to acknowledge the right click:
Problem is the selected item on the list box doesn't move until after the mouse down event so whatever code I would run would involve the wrong record(s).
I'm using Access 2000 and 2003. Can someone tell me how to get the the correct record selected on mouse down, or point me to a working example of right-click functionality on a listbox.
Thanks,
Sup
Code:
Private Sub List0_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
I'm using Access 2000 and 2003. Can someone tell me how to get the the correct record selected on mouse down, or point me to a working example of right-click functionality on a listbox.
Thanks,
Sup