Ketroke Combo to Simulate Double Click

  • Thread starter Thread starter Mike Thomas
  • Start date Start date
M

Mike Thomas

Is there a keystoke combo in Access 2000 which trips the double click event
in a text box? I use double clicks quite a bit, especially in text boxes,
and would like to find a way for users to trip this event without having to
use a mouse.

If not, is there a commonly accepted combo for tripping this event which I
could program with the KeyPress event?

Thanks
Mike Thomas
 
You could probably trap the keyPress of a value like "~". You could
substitute a different key if desired.

Private Sub fld4_DblClick(Cancel As Integer)
MsgBox "double-Click"
End Sub

Private Sub fld4_KeyPress(KeyAscii As Integer)
If KeyAscii = Asc("~") Then
KeyAscii = 0
fld4_DblClick False
End If
End Sub
 
Thanks Duane


Duane Hookom said:
You could probably trap the keyPress of a value like "~". You could
substitute a different key if desired.

Private Sub fld4_DblClick(Cancel As Integer)
MsgBox "double-Click"
End Sub

Private Sub fld4_KeyPress(KeyAscii As Integer)
If KeyAscii = Asc("~") Then
KeyAscii = 0
fld4_DblClick False
End If
End Sub
 
Back
Top