J
Jay
I am not sure if I am in the right news group for this question.
I am having a problem with the filecopy in access.
I would like to use the filecopy for text files to backup and import into
access and then make queries for forms.
Here is what I have so far:
Dim source As String
Dim target As String
source = "a:\test.txt"
target = "C:\Documents and Settings\UserAccount\Desktop\test.txt"
FileCopy source, target
End Sub
I can copy from folders on my harddrive, but not from the A Drive.
I tried on 3 other computers and I get the same error.
If I change the code to the following, it copies:
Dim source As String
Dim target As String
source = "C:\test.txt"
target = "C:\temp\test.txt"
FileCopy source, target
End Sub
It looks like the problem is the target
target = "C:\Documents and Settings\UserAccount\Desktop\test.txt"
Any solution would be wonderfull.
I am having a problem with the filecopy in access.
I would like to use the filecopy for text files to backup and import into
access and then make queries for forms.
Here is what I have so far:
Dim source As String
Dim target As String
source = "a:\test.txt"
target = "C:\Documents and Settings\UserAccount\Desktop\test.txt"
FileCopy source, target
End Sub
I can copy from folders on my harddrive, but not from the A Drive.
I tried on 3 other computers and I get the same error.
If I change the code to the following, it copies:
Dim source As String
Dim target As String
source = "C:\test.txt"
target = "C:\temp\test.txt"
FileCopy source, target
End Sub
It looks like the problem is the target
target = "C:\Documents and Settings\UserAccount\Desktop\test.txt"
Any solution would be wonderfull.