The only way to ensure that you can open a DBF is to attempt to USE it and handle the error if you can't.
>I have a table with file names in in.
>
>Is there a way to know if a file is opened?
>
>Will I have to use fclose or fcreate?
>
>What I'm hoping for (solution) is something like the following
>
>
>If TheFileIsOpen( lcNameOfTheFile)
> .
> .
> .
>else
> .
> .
> .
>endif
>
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer