Current Function

T

Turner

I have a standardized error handler that is used in each
of my user functions. All the parameters with the
exception of the Function Name are variables. Is there
any EASY way of determining the current function?

I am currently using Access 97!

Private Sub Form_Open(Cancel As Integer)
On Error GoTo err_Form_Open

Call PopulateGobalVariables
Call VerifyDbAvailability
Call OpenPassWordForm
DoCmd.Close acForm, Me.Name

exit_Form_Open:
Exit Function

err_Form_Open:
' I would like Form_Open to be a variable!!
Call MyErrorHandler(Me.Name, "Form_Open",
Err.Description, Err.number, gblstMessageResponse)
Resume exit_PopulateGobalVariables

End Sub
 
D

Douglas J. Steele

Nope. What you're doing (or some variation thereof, such as setting a
variable at the beginning of each routine) is the only way.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top