Hi,
I have created a right-click event on my subform. What I want to do with It is to open Cmdbutton with right click, just next to mouse cursor.
Problem is that Cmdbutton appears on right-click, but doesn't move to desired position, It just stays at It's design view position. Here's code:
Code:
Private Sub Ime_APO_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 2 Then
Forms![MyForm]![Command5].Visible = True
Forms![MyForm]![Command5].Top = Forms![MyForm]![Mysubform].Form![MysubFormField].Top
End If
End Sub
P.S.: Subform is set to Shortcut menu NO, so that I don't get Access right-click menu after code is executed. Not sure If that has to do something with It. And button doesn't move because Subform field is by default set at same Top on form as button - so basically I don't know how to open button next to subform field.