I am trying to copy a file from a SharePoint folder to a local folder on the C:\ and I am getting the following error.
Here is my code:
But if I use a windows mapped drive to the same location it works fine:
Unfortunately not all of the users have the same mapped drive, so I can't use that. I'm sure it is a syntax error with the SharePoint path, but that is the same syntax I use when I import an Excel file, which works fine.
Any help would be greatly appreciated.
Thanks
Here is my code:
Code:
FileCopy "https://sysco.sharepoint.com/sites/163-FS/Operations/Transportation/RTA/Operations/Transportation/RTA/Routing/Import%20dispacth/Update/Driver%20Notification.accdb", "c:\Driver%20Notification\Driver%20Notification.accdb"
But if I use a windows mapped drive to the same location it works fine:
Code:
FileCopy "r:\RTA\Routing\Import dispacth\Update\Driver Notification.accdb", "c:\Driver Notification\Driver Notification.accdb
Unfortunately not all of the users have the same mapped drive, so I can't use that. I'm sure it is a syntax error with the SharePoint path, but that is the same syntax I use when I import an Excel file, which works fine.
Code:
DoCmd.TransferSpreadsheet acImport, 10, "tblDrivers", "https://sysco.sharepoint.com/sites/163-FS/Operations/Transportation/RTA/Routing/Import%20dispacth/DriverList.xlsx", True, ""
Any help would be greatly appreciated.
Thanks