N Number11 Member Local time Today, 10:03 Joined Jan 29, 2020 Messages 619 Dec 31, 2021 #1 Hello, I need to copy a report that is generated from MS Access from c:\ drive to a sharepoint folder is this possible
Hello, I need to copy a report that is generated from MS Access from c:\ drive to a sharepoint folder is this possible
The_Doc_Man Immoderate Moderator Staff member Local time Today, 04:03 Joined Feb 28, 2001 Messages 29,991 Dec 31, 2021 #2 I would start by doing a DoCmd.OutputTo of the report to a specified local file. Then you perhaps could use FSO to copy the file. File Management with Scripting Object | Database Journal Managing files should be really simple in Access, but it's not. Well, once you get familiar with the File Scripting Object (FSO), it's not so bad, but www.databasejournal.com The video is done from Excel but uses VBA to do it so the basic code would work from Access's VBA. Finally, when finished with the copy operation, dispose of the local copy with the VBA "Kill" verb.
I would start by doing a DoCmd.OutputTo of the report to a specified local file. Then you perhaps could use FSO to copy the file. File Management with Scripting Object | Database Journal Managing files should be really simple in Access, but it's not. Well, once you get familiar with the File Scripting Object (FSO), it's not so bad, but www.databasejournal.com The video is done from Excel but uses VBA to do it so the basic code would work from Access's VBA. Finally, when finished with the copy operation, dispose of the local copy with the VBA "Kill" verb.
N Number11 Member Local time Today, 10:03 Joined Jan 29, 2020 Messages 619 Dec 31, 2021 #3 thanks so i have my excel report created in a local found so just need to now have the code coy the file to a sharepoint folder
thanks so i have my excel report created in a local found so just need to now have the code coy the file to a sharepoint folder
Gasman Enthusiastic Amateur Local time Today, 10:03 Joined Sep 21, 2011 Messages 16,535 Dec 31, 2021 #4 W Number11 said: thanks so i have my excel report created in a local found so just need to now have the code coy the file to a sharepoint folder Click to expand... Why not watch the video and just do it directly?
W Number11 said: thanks so i have my excel report created in a local found so just need to now have the code coy the file to a sharepoint folder Click to expand... Why not watch the video and just do it directly?