IF USED() LOCATE FOR... && or whatever else you want that needs a table open in the CWD ELSE * nMyIDidSomethingDumbError is an integer corresponding to the value * given to the error handler; if VFP has an error that it handles the * way you want (like shutting down), fine, otherwise, add code to your * error handler to deal with this when this error code is seen ERROR nMyIDidSomethingDumbError && Hand the error off to your error handler ENDIF>