I'm stumped due to my lack of VBA skill. See below code...I trying to figure out how to get my string "strControlName" into the control name where I have annotated X.
Dim ctlCurrentControl As Control
Dim strControlName As String
Set ctlCurrentControl = Screen.ActiveControl
strControlName = ctlCurrentControl.Name
Dim stDocName As String
stDocName = "Form2"
stLinkCriteria = "[context]=" & Me![X].HelpContextId]
As you can surmise, this is part of a roll-your-own help facility I'm trying to put together...user right-clicks on the control trapped by mouse down event then opens a form which is filtered based on the control which had the focus when right-clicking occured.
Thanks in advance.
Dim ctlCurrentControl As Control
Dim strControlName As String
Set ctlCurrentControl = Screen.ActiveControl
strControlName = ctlCurrentControl.Name
Dim stDocName As String
stDocName = "Form2"
stLinkCriteria = "[context]=" & Me![X].HelpContextId]
As you can surmise, this is part of a roll-your-own help facility I'm trying to put together...user right-clicks on the control trapped by mouse down event then opens a form which is filtered based on the control which had the focus when right-clicking occured.
Thanks in advance.