>Several of my users are getting an error on the 'PACK' line below. The error is 'file access is denied' as if they did not have exclusive use of the file.
>Frankly, I don't see how this can happen nor what to do about it when it does. This code , basically, has been in place since the mid 1990's first in FoxPro for DOS and now in VFP and the problem has only developed recently.
>
>If Used('TAX')
> Sele tax
> Use
>Endif
>Use tax Exclu In 0
>Select tax
>delete All For ref='DEPOSIT' And Empty(cust_id)
>Replace All tax_rate With Round(tax_rate/100,4) For tax_rate >=1.00 In tax
>Pack -- this line generates a file access denied error for several users.
>
>Thanks!
My guess is something has changed regarding permissions and your pack routine doesn't have rights to write out the packed version to the folder. Did you just switch to Windows 7 or has something changes on the network?
Charles Hankey
Though a good deal is too strange to be believed, nothing is too strange to have happened.
- Thomas Hardy
Half the harm that is done in this world is due to people who want to feel important. They don't mean to do harm-- but the harm does not interest them. Or they do not see it, or they justify it because they are absorbed in the endless struggle to think well of themselves.
-- T. S. Eliot
Democracy is two wolves and a sheep voting on what to have for lunch.
Liberty is a well-armed sheep contesting the vote.
- Ben Franklin
Pardon him, Theodotus. He is a barbarian, and thinks that the customs of his tribe and island are the laws of nature.