Thanks for your comments Eric. I'll keep plugging away - it seems the problem isn't that the ON ERROR procedure code does not fire - it does - the problem is that the application does not release the commandbutton from the call stack - so it refuese to release the form.
Al
>I'm not sure what's happening here but basically the ON ERROR should pass program execution to the specified program/procedure regardless of what comes after the error in your click event. Try putting your error handling code in a separate application method or prg. Also, try to eliminate other things that may be affecting the basic train of logic in the system. What you want is error - trap - handle error - display message - quit, so the best place to start is by commenting out everything or anything that my be interferring with this process. Once that is working start adding your other code back into the system one piece at a time till you find your gotcha.
>
>HTH
Al Williams
Anola MB, CANADA