Access VBA: Is it possible to reset error handling

前端 未结 5 1846
慢半拍i
慢半拍i 2021-02-19 04:59

I am using in the first part of my program

on error go to start

Suppose in my second part I am again using

on error resume next

This second erro

5条回答
  •  独厮守ぢ
    2021-02-19 05:42

    You need to clear the error. Try putting this code in:

    If Err.Number > 0 Then
        Err.Clear
    End If
    

    You can also use Err.Number to handle specific error cases.

提交回复
热议问题