Getting Module & Sub/Function Names

NimbusSoftware

Registered User.
Local time
Today, 11:14
Joined
Feb 18, 2005
Messages
19
I employ an error handler that reports the form name and control where the error occured.
Code:
   ErrorHandler Name, ActiveControl.Name & "_KeyPress", _
      "KeyAscii: " & KeyAscii

It works great untill we move on to modules. I would like to have the code discover the sub/function & module names by itself (I hate typing). :D

That which does not kill us makes us stranger.
 
Nimbus,

I don't think that is gonna happen. Other MS products give you a very
detailed Call Stack, but not Access. There have been some posts about
"global" error handlers, etc., but I don't recall ever seeing anything come
of them.

Wayne
 
Before posting a new thread, please try and search your problem first. Duplicate threads waste memory/storage space and increase search times. Keep the forum clean =)

This thread was only posted 3 days ago. Not to mention that it was the second or third one on the list when you posted your problem (so looking wouldnt have been that hard).

We still haven't found a "great" answer, but with more heads hopefully someone can bring someone to it. Regardless, go here:
http://www.access-programmers.co.uk/forums/showthread.php?t=81716

Hope this helps,
modest
 

Users who are viewing this thread

Back
Top Bottom