I created a command button on the userform and attached the code below:
Code:
Private Sub cmdTextBoxName_Enter()
MsgBox Me.ActiveControl.Name
End Sub
What I received back was
"cmdTextBoxName"
The name of the textbox is actually "Document_City"
What am I missing?
Thank you for your response
Hdata