G
Guest
I have code in several places that creates directories and I’ve noticed
several times that after I’m done testing and try to delete the directories,
I get the following error message:
"Cannot delete xxx: It is being used by another person or program.
Close any programs that might be using the file and try again."
The code I’m using is simple:
If Dir(RetreivePath & "\Invoice\", vbDirectory) = "" Then
MkDir (RetreivePath & "\Invoice\")
End If
Maybe I have to close something out in code, but I can’t figure it out. Any
suggestions would be much appreciated.
Thanks,
Clint
several times that after I’m done testing and try to delete the directories,
I get the following error message:
"Cannot delete xxx: It is being used by another person or program.
Close any programs that might be using the file and try again."
The code I’m using is simple:
If Dir(RetreivePath & "\Invoice\", vbDirectory) = "" Then
MkDir (RetreivePath & "\Invoice\")
End If
Maybe I have to close something out in code, but I can’t figure it out. Any
suggestions would be much appreciated.
Thanks,
Clint