R
rdemyan via AccessMonster.com
I'm trying to copy a .mdb file from Computer A to Computer B. Here's the
simplified code:
If fso.FileExists(SourceFile) = False Then
MsbBox "Source file doesn't exist. Can't copy!"
Exit Sub
End If
If fso.FileExists(DestFile) = True Then
Kill DestFile
End If
FileCopy SourceFile, DestFile
But I'm getting the following error at the FileCopy statement:
Error #75 Path/File access Error
I typed in the code above, so hopefully there are no errors. The source file
definately exists (fso.FileExists(SourceFile) = True).
The SourceFile is not open. So I don't have a clue why this is not working.
I've only just started working with A2003, so maybe there's something I'm
unaware of, but security has been set to the lowest level possible.
Any help, ideas, suggestions are appreciated.
Thank you.
simplified code:
If fso.FileExists(SourceFile) = False Then
MsbBox "Source file doesn't exist. Can't copy!"
Exit Sub
End If
If fso.FileExists(DestFile) = True Then
Kill DestFile
End If
FileCopy SourceFile, DestFile
But I'm getting the following error at the FileCopy statement:
Error #75 Path/File access Error
I typed in the code above, so hopefully there are no errors. The source file
definately exists (fso.FileExists(SourceFile) = True).
The SourceFile is not open. So I don't have a clue why this is not working.
I've only just started working with A2003, so maybe there's something I'm
unaware of, but security has been set to the lowest level possible.
Any help, ideas, suggestions are appreciated.
Thank you.