anna, you may want to look into using my OpenFile() UDF. It would have avoided the error entirely. Although it does not yet use FreeFileHandle() is does find a free file handle and is backward compatible to 4.02.

http://www.kixtart.org/board/ultimatebb.php?ubb=get_topic;f=12;t=000267#000000

[ 09. July 2003, 21:57: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/