A
Afrosheen via AccessMonster.com
I have an error routine that I got from Allen Brown and I'm trying to add to
it so I can get a better description. The problem is that I'm getting an
error from it. Here is the code
On Error GoTo {PROCEDURE_NAME}_Error
{PROCEDURE_BODY}
On Error GoTo 0
Exit {PROCEDURE_TYPE}
{PROCEDURE_NAME}_Error:
MsgBox "Error " & Err.Number & " (" & Err.Description & ") in procedure
{PROCEDURE_NAME} of {MODULE_TYPE} {MODULE_NAME}"
Err.Description = Err.Description & " In Procedure " & "{PROCEDURE_NAME}
of {MODULE_TYPE} {MODULE_NAME}"
Call LogError(Err.Number, Err.Description)
I believe the error is in the "Err.Description" line because the syntax may
not be right.
Your help would be appreciated. Thank you for reading my post.
it so I can get a better description. The problem is that I'm getting an
error from it. Here is the code
On Error GoTo {PROCEDURE_NAME}_Error
{PROCEDURE_BODY}
On Error GoTo 0
Exit {PROCEDURE_TYPE}
{PROCEDURE_NAME}_Error:
MsgBox "Error " & Err.Number & " (" & Err.Description & ") in procedure
{PROCEDURE_NAME} of {MODULE_TYPE} {MODULE_NAME}"
Err.Description = Err.Description & " In Procedure " & "{PROCEDURE_NAME}
of {MODULE_TYPE} {MODULE_NAME}"
Call LogError(Err.Number, Err.Description)
I believe the error is in the "Err.Description" line because the syntax may
not be right.
Your help would be appreciated. Thank you for reading my post.