G
Guest
Is there anything wrong with this error handling technique?
public sub SomeSub()
on error goto ErrSS
'code goes here
exit sub
ErrSS:
err.clear
end sub
I like to make small functions/subs that do one task so I don't care about
resuming anyway. As long as I "clear" the error, do I need to "resume"
anywhere. It seems like waste to me when so many examples, including the
code generated by access wizards, resume only to an exit sub/function command.
Thanks,
Cliff
public sub SomeSub()
on error goto ErrSS
'code goes here
exit sub
ErrSS:
err.clear
end sub
I like to make small functions/subs that do one task so I don't care about
resuming anyway. As long as I "clear" the error, do I need to "resume"
anywhere. It seems like waste to me when so many examples, including the
code generated by access wizards, resume only to an exit sub/function command.
Thanks,
Cliff