Keyboard shortcut boubleclick (1 Viewer)

timhealy

New member
Local time
Today, 17:49
Joined
Oct 25, 2012
Messages
4
Is there a keyboard shortcut that simulates the double click.

In my Sectionfrm I have a command button that opens my Ordersfrm. Because I use the Ordersfrm for reasons not always associated with the Sectionfrm I do not automatically populate the SectionID (textbox) in the Ordersfrm with the SectionID from the Sectionfrm.

When I want to link an order to a (building) section I double click the SectionID field in the Ordersfrm which in turn runs VBA code that copies the SectionID from the Sectionfrm to the Ordersfrm.

As I tab through my form I find it annoying to move away from my keyboard to the mouse to double click the SectionID, so the question is:

Is there a keyboard shortcut that simulates the double click to run the VBA code?
 

JHB

Have been here a while
Local time
Today, 23:49
Joined
Jun 17, 2012
Messages
7,732
Is there a keyboard shortcut that simulates the double click.
No - not what I'm aware of, but you can use the "On Key Down" event for the control, (SectionID), to do some action/run code.
 

timhealy

New member
Local time
Today, 17:49
Joined
Oct 25, 2012
Messages
4
HHHMMM, good idea. I will try that the next time I get to play with my database. Thanks a lot. I may be able to just move the code to the "On Key Down" event :rolleyes:
 

Users who are viewing this thread

Top Bottom