Also if you look at my OpenFile() UDF, you will find and example of using "Exit" to make the actual error codes available to the calling program.
_________________________
Home page: http://www.kixhelp.com/hb/