Have you verified the user rights to the directory?
Also are you copying InvoiceHdr table? If yes, remove InvoiceHdr. from your command. I would not even suggest to use m. for the Which variable <g>
Or is WHICH a variable defined in INCLUDE file?
>There is a slash for the .datadir
>Which is a variable for the invoice number being reconciled.
>
>The code works just fine on half of the computers and produces the "corrupt" error on the others.
>
>Thanks for your help.
>
>>>Sorry! I must have deleted the line of code.
>>>
>>>Copy TO ALLTRIM(localparms.datadir)+ "temp.DBF" FOR invoicehdr.INVOICENUM = WHICH
>>
>>Hmm, what is in LocalParms.datadir (could it be missing \ at the end?) and what is Which? Is it a variable?
If it's not broken, fix it until it is.
My Blog