Read this article about why not use RETURN inside a WITH block.
http://doughennig.blogspot.com/2006/04/dont-return-inside-with.html>I suspect that some of the C5 errors a few of my users have been getting may be due to dangling references.
>
>Is there any programmatic way to find such references? (I was successful in finding a way to locate RETURNs between WITH / ENDWITH and was hoping there'd be something in this case as well).
>
>Thanks
Greg Reichert