I discovered that there actually is a Double Click (DblClick) event the TreeView control found in Microsoft Windows Common Controls 6.0 (SP6) MSCOMCTL.OCX responds to.
You will not find it in the Events it publishes to Access. (See screen capture)
However, hand creating the correct event in the VBA editor indeed works.
Just take the name of the control as the first part of the event name, and then suffix the control name with "_DblClick()", as shown in my sample code:
Badda bing, badda boom... the TreeView control obeys Double Click events now!
I am leaving the btnSelect button control, and have simply wired that event, and this event shown here, both to call the Select_Click event, where the meat of the event exists.
You will not find it in the Events it publishes to Access. (See screen capture)
However, hand creating the correct event in the VBA editor indeed works.
Just take the name of the control as the first part of the event name, and then suffix the control name with "_DblClick()", as shown in my sample code:
Code:
Private Sub tvProjectReports_DblClick()
Call Select_Click
End Sub
I am leaving the btnSelect button control, and have simply wired that event, and this event shown here, both to call the Select_Click event, where the meat of the event exists.
Last edited by a moderator: