When I run the following code, it gives me a "Division by zero" error, the thing I'm wondering is why doesn't it go to the error handler, even though I have one.
Code:
Private Sub Form_Load()
1 On Error GoTo Form_Load_Error
Dim iValue As Integer
2 iValue = 5 / 0 'bombs out
3 MousePointer = vbHourglass
4 MousePointer = vbDefault
5 On Error GoTo 0
6 Exit Sub
Form_Load_Error:
7 MsgBox "Line: " + CStr(Erl) + " Error " & Err.Number & " (" & Err.Description & ") in procedure Form_Load of Form Form1"
End Sub