Access VBA: Is it possible to reset error handling

前端 未结 5 1183
再見小時候
再見小時候 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:44

    There is a difference between an answer and a solution. Sometimes we just need an answer, warnings appreciated, and let us learn by experience that it is not actually a good solution. That being said, I found this:

    You need to use On Error GoTo -1 or Err.Clear to reset error trapping.

    Check this answer I posted a few months ago for a more detailed explanation.

提交回复
热议问题