Colin once posted that Error 70 could mean invalid target file name. I don't see anything wrong with either the code statement or the two file names. Have I missed something here?
Code:
If Len(Dir(strBkUpName)) > 0 Then Kill (strBkUpName)
FileCopy TMSClientDB, strBkUpName
Code:
PostError:
Open TMSClientPath & "AutoLogs.txt" For Append As #1
Print #1, "TMS DB/Im Backups " & Date & " " & Time()
Print #1, "Backing up: " & TMSClientDB
Print #1, "To backup file: " & strBkUpName
Print #1, "ERROR: " & strOpMsg
Print #1, "Error Number: " & Err.Number
Print #1, "Error Description: " & Err.Description
Print #1, "Now terminating backup process."
Close #1
And the log:
Code:
TMS DB/Im Backups 1/30/2025 4:39:49 PM
Backing up: C:\TMS\TMS-Clients\SCC\SCC Data.mdb
To backup file: E:\My Drive\SCC BkUps\05Thu_SCC_Data.mdb
ERROR:
Error Number: 70
Error Description: Permission denied
Now terminating backup process.
Same error with 3 other client DB's. All folder names verified by Explorer inspection. Some on local drives and a couple on Google Drive.