|
-
Jan 28th, 2000, 06:53 AM
#1
Thread Starter
New Member
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 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|