>>
>>I am not getting an error message, when the commands run it just continues like nothing was wrong but doesn't actually do anything. If I run DELETE FILE 'c:\template\data\file.dbf' in the command window it deletes it just fine, but it won't do it with the variable.
You need to check the value of your variables holding the field names. I'll bet you have something wrong there (extra space, etc)
Wayne Myers, MCSD
Senior Consultant
Forte' Incorporated
"The only things you can take to heaven are those which you give away" Author Unknown