Subroutine Caller Info

J

JimS

I want to develop a generic error logging subroutine. It should log any
error, along with the caller's identity. I set up an error logging table with
fields for

Form Name
Control Name
Error Number
Error Description
Date/Time
NT Username
Comment
etc.

I was hoping to call it like "Call ErrLog", with no required parameters. How
can I learn the form name of the caller (if any), and error numbers, etc? If
not, I'll just make them parameters, but I hoped I could avoid that.

Perhaps if I called it with the caller's form name, I could glean the rest
from the forms collection?

Other ideas?
 

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