>Someone once forwarded me a forum regarding C5 errors saying that it is mainly caused when having a return statement within a with..endwith block. Am not sure though if it has any basis at all...how does with..endwith block handle object release if you've issued a return statement prior to endwith?
There're many reasons for C5 to happens and return statement within a with..endwith block is one of them. See Doug Hennig's blog
Don't RETURN Inside WITH for details.
--sb--