Hi Roger,
In addition to Sergey's reponse, you may want to look at Doug Hennig's paper on error handling. It can be found on
WWW.STONEFIELD.COM. Click on Technical papers on the left side.
I think he presented an update in a FoxTalk (
www.pinnaclepublishing.com) issue within the last year.
Robert