nigelf said:
Is there any way of knowing what procedure (e.g. Function, sub) I am in at
runtime? I am looking to create a reasonable error handler and have it use
the current procedure...
Unfortunately not. Since you must insert the error hander code anway, many
of us use the free MZtools that will insert the error handling code + the
procedure/function name for you.
However, for any control/event on your form, you can get the function name
by grabbing the name of the control with the current focus, since the
procedure name is based on that....
some string = Screen.ActiveContorl.name
So, if you are in an after update event, then
Some string + "_AfterUpdate" is the current procedure name...