问题描述
在程序结束时,我有以下内容:
Exit_Proc:
退出Sub
Err_Proc:
调用ErrorLog(用户,错误类型,文件名)
resume exit_Proc
结束功能
奇数事情是如果有一个错误,下面的代码
Err_Proc在退出之前运行两次。
为什么Err_Proc下的代码会针对每个错误运行两次?
At the end of a procedure I have the below:
Exit_Proc:
Exit Sub
Err_Proc:
Call ErrorLog(user,error type, filename)
resume exit_Proc
End Function
The odd thing is if there is a single error the code underneath
Err_Proc runs twice before exiting.
Why does the code under Err_Proc run twice for each individual error ?
推荐答案
最后一行真的退出函数还是帖子中的拼写错误?
-
Rick Brandt,Microsoft Access MVP
电子邮件(视情况而定)至...
在Hunter dot com的RBrandt
Is the last line really Exit Function or is that a typo in your post?
--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
-
Rick Brandt,Microsoft Access MVP
电子邮件(视情况而定)至...
在Hunter dot的RBrandt com
--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
这篇关于错误处理重复两次的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!