Hi there!

I'm writing an error handler that let's the user (and eventually the programmer) know what function was processing when the error occurred. The error message includes:
- form name
- function name
- error description

So, for form, I can use me.name (form name)
For the error, I can use err.description (description of error).
But how do write the function name (without having to hardcode the function name each time)????

Here's a little code if that makes it clearer?


CODE:

Exit Sub
error:
If ProcessError(Err, Me.Name, "UpdateControls") = vbYes Then
Resume Next
End If

So, instead of writing "UpdateControls" or whatever my function name is, I'd like a way to automatically fill it in.

Thank you very, very much!!
Andrea