J
JohnWL
Is there any property or constant or something I can read in VBA to get the
complete name of the current procedure in a form's module
(txtFwdCity_AfterUpdate in example below)? And the module name (frmLeaseEdit
for the example below)? It would sure simplify error handling code, such
as:
Sub txtFwdCity_AfterUpdate()
On Error GoTo HandleErr
My code
HandleErr:
' FormName = Me.Form.Name or something
' ProcName = Me. Proc.Name or something
Call LogError(Err.Number, Err.Description, FormName, ProcName)
End Sub
complete name of the current procedure in a form's module
(txtFwdCity_AfterUpdate in example below)? And the module name (frmLeaseEdit
for the example below)? It would sure simplify error handling code, such
as:
Sub txtFwdCity_AfterUpdate()
On Error GoTo HandleErr
My code
HandleErr:
' FormName = Me.Form.Name or something
' ProcName = Me. Proc.Name or something
Call LogError(Err.Number, Err.Description, FormName, ProcName)
End Sub