Access VBA: Is it possible to reset error handling

前端 未结 5 1257
再見小時候
再見小時候 2021-02-19 05:18

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:45

    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.

提交回复
热议问题