>>I need the control be enabled
>> but without popup menu
>
>Is it cause you want to display your own popup menu? If so, try this:
>
>Private Sub Text1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
> If Button = vbRightButton Then
> Text1.Enabled = False
> Text1.Enabled = True
> Me.PopupMenu mnuTest
> End If
>End Sub
Hi Eric,
I tried it in MS Access 97 and it didn't work. It gave an error message saying, that I can't disable a control while it has the focus. Constant vbRightButton is not defined in MS Access 97. After experiment I found out that its value is 2.
Sincerely,
Igor Gelin
Database Developer