C chrisguk Registered User. Local time Today, 00:52 Joined Mar 9, 2011 Messages 148 May 21, 2011 #1 Is there a way to print the number of an error code on the OnError event?
jdraw Super Moderator Staff member Local time Today, 03:52 Joined Jan 23, 2006 Messages 15,498 May 21, 2011 #2 I have one on a combo's AfterUpdate event Combo0_AfterUpdate_Error: MsgBox "Error " & Err.number & " (" & Err.Description & ") in procedure Combo0_AfterUpdate of VBA Document Form_Form11" Click to expand... There is a free utility called MZTools for VBA. It is available here. http://www.mztools.com/v3/mztools3.aspx It has many features, one of which is to add an Error Handler to a routine. This has many other features, and if you don't have it, you should. Very highly recommended.
I have one on a combo's AfterUpdate event Combo0_AfterUpdate_Error: MsgBox "Error " & Err.number & " (" & Err.Description & ") in procedure Combo0_AfterUpdate of VBA Document Form_Form11" Click to expand... There is a free utility called MZTools for VBA. It is available here. http://www.mztools.com/v3/mztools3.aspx It has many features, one of which is to add an Error Handler to a routine. This has many other features, and if you don't have it, you should. Very highly recommended.