What does @Error and @SError return? Have you tried stepping through in debug mode?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.