Hi,
Access denied usually means that you don't have access rights
to the file (ownership), or the file has been opened by another
process and will not share it. You can try Function 59H , Get
Extended Error, to get more information about why the error
occurred, and possible actions to take.
Without seeing your code that is about all that can be said.
HTH,
Steve N.