Jason,
In addition to what Walter and Fred have said, remember that Set Exclusive on/off is scoped to the datasession. If your forms use private datasessions you must reset the value each time. Most of us put this code in our base form class, since there are a LOT of 'SET' commands scoped this way.
HTH
Barbara
>I am having a problem with a USE command. I am trying to open a file that is already open by multiple
>users. If I run the program from within FoxPro there are no problems. As soon as I compile the application
>and run it, the application returns a 'File Access Denied' error running the same procedure.
>
>Any Ideas?
>
>Thanks,
>
>Jason