Error Deleting File or Folder

David Sinclair

Registered User.
Local time
Tomorrow, 04:32
Joined
Jan 2, 2006
Messages
14
Have a procedure that copies files to from Folder#1 to Folder#2, (Using Access 2003, Windows XP) then after the files have been copied then deletes Folder#1. The problem is that am unable to delete all the subfolders as one of these end’s up with the error, access-denied.

Use the Kill statement Looping through sub folders to delete files, then use File Search to confirm that all files have in fact been deleted, then proceed to loop through sub folders using the RMDir command to remove folders. At this point the error is happening.

After Access has been close and on the next restart am then able to delete the remaining folders. Any thoughts on what be might holding up in Access that is denying us the ability to delete all the folders.
 
Last edited:

Users who are viewing this thread

Back
Top Bottom