Reference to currently running function- subname

J

John J.

How can I get the current Object, Subroutine name, function name in VBA so
that I can make a generic error message that automatically shows the right
name?
Thanks.
JOhn
 
D

Douglas J. Steele

There's nothing built into Access that will return that information for you.
You need to set the values in each routine so that you can pass them to your
generic error handler.

MZ Tools, available for free at http://www.mztools.com/v3/mztools3.aspx, is
an add-in that, among other things, can automatically fill in that
information for you.
 
J

John J.

Great! Thanks. I found the option.

John

Douglas J. Steele said:
There's nothing built into Access that will return that information for
you. You need to set the values in each routine so that you can pass them
to your generic error handler.

MZ Tools, available for free at http://www.mztools.com/v3/mztools3.aspx,
is an add-in that, among other things, can automatically fill in that
information for you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top