Hi Mohammed,
SET RESOURCE OFF
The resource file is a DBF.
>hi all,
>i try to delete via command button as below.it works at mydir(myform),but if i run it as .exe i got error message file is in use.
>
>CLOSE all
>ERASE *.dbf
>ERASE *.cdx
>ERASE *.fpt
>ERASE *.xls
>
>thanks
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05