FileCopy

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Thanks for taking the time to read my question.

I am trying to use FileCopy to move a file from one location to another, but
I keep getting "Permission Denied" Run Time Error 70.

I don't know why.

I am copying from the users computer to a server. There are no userID
requirements. I can't even copy from one folder on my machine to another.

Any ideas.

Here is my code.

Brad

Me.FileName = "TransferFile.xls"
Me.FilePath = "C:\"

CODE
--------------------------------------

ServerFolderPathAndFile = "\\camisnasmfc\lmk_access$\prj\VSAD\" & Me.FileName

Me.FilePath = "C:\TransferFile.xls"

FileCopy Me.FilePath, ServerFolderPathAndFile
 
Your problem seems to be on the server you are trying to copy the file.
Go to the folder on the server and check the permissions on the security tab
(if you are using W2K or W2003).

Check the "lmk_access\Users" if they have write/modify rigths.
 
Back
Top