On event ‘Click’ The command “Msgbox Screen.ActiveControl.Name” return the current control name.
Is there a way to figure out that it was in event “On Click” the command was called from?
The function should be used in a error tracking routine.
I think you can use the modules object and then use its varoius properties like ProcOfLine to determine the current procedure's name. It is very much possible but a lot of overhead as it has to be added for every procedure.