msgbox Resets the Err object' info (1 Viewer)

joeKra

Registered User.
Local time
Yesterday, 19:14
Joined
Jan 24, 2012
Messages
208
Hi Guys
i am trying to figure out what happened to the code that it resets the err info after the Msgbox so i cannot log the detailed info in ErrorHandler Function anymore. Any thoughts ?

I see it happens right after the MsgBox as a Debug.Print will also show the object reset

Code:
MsgBox "Error: " & Err.Number & vbCrLf & "Error Line: " & vbCrLf & "Decription: " & Err.Description & vbCrLf & "Procedure: cmdInvoice_Click of VBA Document Form_Master" & vbCrLf & "Err Source: " & Err.Source
ErrorHandler "Error " & Err.Number & " Error Line " & Erl & " (" & Err.Description & ") in procedure cmdInvoice_Click of VBA Document Form_Master" & vbCrLf & "Err Source " & Err.Source

Regards

Joseph
 

Users who are viewing this thread

Top Bottom