G
Guest
I’m trying to copy folders and sufolders using the following code and don’t
work. I receive an error, path not found
Public Function CopyFLD()
Dim strSQL As String, SourcePath As String, DestPath As String
Dim fs
Set fs = CreateObject("Scripting.FileSystemObject")
SourcePath = Forms![axCopyAllocation]![SourcePath]
DestPath = Forms![axCopyAllocation]![DestPath]
fs.CopyFolder SourcePath, DestPath, True
End Function
If I use msgbox to checjk the path is right and I a use the following code
'fs.CopyFolder "\\SOYA04NTMULTI1\Pasys$\Allocation\Transfer",
"\\Us21808563\Allocation\Transfer", True
works.
What’s happened?
There is another away to copy folders and subfolders?
Thanks regards
José
work. I receive an error, path not found
Public Function CopyFLD()
Dim strSQL As String, SourcePath As String, DestPath As String
Dim fs
Set fs = CreateObject("Scripting.FileSystemObject")
SourcePath = Forms![axCopyAllocation]![SourcePath]
DestPath = Forms![axCopyAllocation]![DestPath]
fs.CopyFolder SourcePath, DestPath, True
End Function
If I use msgbox to checjk the path is right and I a use the following code
'fs.CopyFolder "\\SOYA04NTMULTI1\Pasys$\Allocation\Transfer",
"\\Us21808563\Allocation\Transfer", True
works.
What’s happened?
There is another away to copy folders and subfolders?
Thanks regards
José