If the code causing the error is in a form method, yes, I think you have to catch the error in the form error method.
If you know exact error numbers you want to trap, David's solution is simpler.
>
>So, I should override the error at the FORM level, rather than down in the object performing the action that caused the error? Is that how error handling in VFP usually works - from the top down?
>
If the code was in within an object method on the form, use the error() method of that object to trap the problem. For example, if you put code in the click() method of commandButton (which I don't generally do), any error caused in that code will fire the error() method of that commandButton.
At
www.stonefield.com, in the Technical Papers section, Doug has a good paper on error handling.
>If so, that was the gap in my understanding...
>
>TIA
>Michael
>
Steve Gibson