Yes...manually :-)
sActiveRoutine = "MySubName"
If you use a product like MZ Tools, you can make this quite easy by defining a custom header.
VBA does not have a way to return the name of the current proc.
Question
I'm constructing a database in Access with heavy VBA use.
It would be useful for error reporting if I could pass the name of an active subsoutine to a string. Is this possible in VBA?
Thanks.
Solution
Yes...manually :-)
sActiveRoutine = "MySubName"
If you use a product like MZ Tools, you can make this quite easy by defining a custom header.
VBA does not have a way to return the name of the current proc.