Microsoft Access
--
Questions
--
Followers
Top Experts
I know there are security implications, which I will address later. But for now, I just need a way to paste the files.
Any suggestions would be greatly appreciated.
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
Problem with using what is on the clipboard is that objects, not the path\filenames, are there
The problem with the File Dialog is that it allows users to move around the folders (I have just posted a question about that as it will cause me a security issue).
Objects - I see what you mean - I'd also have to check to make sure the objects were indeed files etc.
in that case, what you could do is load the filenames to pick from into a multi-select listbox and process the selected files
I'll post some code in a few minutes






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
My application will be on a hosted server, which complicates the issue as they won't be able to open their local filesystem (through the server). Â If the items were in the clipboard (and assuming they are files), pasting would work....but this is where I have having trouble.
if they cannot access their local file system (why is that?), then where are the files going to get copied to? Could you please explain a bit more? And what is the purpose? thank you.
this way you can always direct via code to go to that folder.
before pasting the copied files, check for the folder path to be the same as the one in the table.

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
if the local file system is not accessible (before you make that determination, however, test it (if I understood correctly, it works with the file dialog -- it may work in the server application, or work with modification since Desktop is a special folder, or perhaps there is a folder that both environments can see and share*), rather than incorporating the above code into the server application, code could run from a stand-alone desktop database on each local drive. Â To transfer files, FTP is an alternative to FileCopy*.
*or FileCopy could be to a folder that is synchronized. GetDesktopPath (late-binding to be more transportable) is isolated and easy to swap for another function that gets this folder.  The server application could use this synchronized folder  ... or poll it and move the files it finds -- and/or there could be a command button to get them.
This process could also be modified, if it needs to run stand-alone, to run in Excel -- if that is the comfort zone ... and especially since that is where the files in your example are coming from.
As for tracking files, if you need to do that, file information can be obtained by the server application and written to wherever it needs to go.
Thank you so much for this answer though.

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
Microsoft Access
--
Questions
--
Followers
Top Experts
Microsoft Access is a rapid application development (RAD) relational database tool. Access can be used for both desktop and web-based applications, and uses VBA (Visual Basic for Applications) as its coding language.