I have a user that uses the ctrl F short cut, he places the cursor on a field then pressing the ctrl F and types in the information he is searching for. My question is after the information from the search is on the screen is there a way to fire off a event?
How to fire an event after results from short cut key
Collapse
X
-
- Set the Form's KeyPreview Property to Yes (Critical).
- Place the following Code in the KeyDown() Event of your Form.
- Now, when CTRL+F is pressed, the Standard Find Dialog will not appear, the code in the KeyDown() Event of the Form will be processed instead. This is where you will Open your Custom Find Form.
Code:Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer) If KeyCode = vbKeyF And Shift = acCtrlMask Then 'CTRL+F was pressed and captured, open Custom Find Form End If End Sub
Comment
Comment