G
Guest
I have an ErrorFunction with a select case in which I trap certain errors and
display appropriate messages for them;
The last thing this function does is call an EndFunction where some basic
application elements are reset in case of code interruption; and in which I
check for untrapped DAO and VBA errors;
In the ErrorFunction after each trapped error message I need to clear the
trapped error before calling the EndFunction, otherwise I get my custom
message AND a second more generic DAO or VBA error message is also displayed.
To avoid this I have tried using "Err.Clear" but this doesn't work. How can
I clear my trapped error before re-directing my code?
Thanks again.
display appropriate messages for them;
The last thing this function does is call an EndFunction where some basic
application elements are reset in case of code interruption; and in which I
check for untrapped DAO and VBA errors;
In the ErrorFunction after each trapped error message I need to clear the
trapped error before calling the EndFunction, otherwise I get my custom
message AND a second more generic DAO or VBA error message is also displayed.
To avoid this I have tried using "Err.Clear" but this doesn't work. How can
I clear my trapped error before re-directing my code?
Thanks again.