ElectricEel
Programmer
Is there any way to return the sub or function name that is currently executing? This is to create a general error trap to write the current form and code the error occured and passed to an ErrorClass
Code:
Private Sub MySub()
On Error Goto ErrHandler
'code
Exit Sub
ErrHandler:
Select Case Err.Number
Case Else
ErrorClass.ErrorLog Err.Number, Err.Description, Me.Name, "MySub"
End Select
End Sub
[\code]
Any suggestions?
TIA