How to return the name of the current function/sub

  • Thread starter new2access123 via AccessMonster.com
  • Start date
N

new2access123 via AccessMonster.com

I am trying to put together the error handler for my app. I want to send the
name of the function/sub in which the error occurred to send my error log. I
have been looking for a function that returns the name of the current
function/sub but have not been able to find one. Does such a function exist?
 
N

new2access123 via AccessMonster.com

Thanks for the links. The error handler i am designing is very much like
yours. Now I know how to do it in VBA.

Allen said:
No: Access doesn't expose the procedure stack to you.

Here's what I personally for error handling:
http://allenbrowne.com/ser-23a.html

If you want a commercial solution:
http://www.everythingaccess.com/simplyvba-global-error-handler.htm
I am trying to put together the error handler for my app. I want to send
the
[quoted text clipped - 3 lines]
function/sub but have not been able to find one. Does such a function
exist?
 

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