Upload Source File from User desktop to Server

JenSGT

Registered User.
Local time
Today, 14:43
Joined
Jul 26, 2009
Messages
20
How do I build a form which only requires User to enter the source file pathname (by browsing windows folders & files to get the pathname), display the source file pathname in a textbox. Then when User enter the upload button, it will automatically upload the file from source location to destination location (server) and rename the source file to the naming convention i require (ie. z:\archive\Letter1.doc)

What is the complete code, require to do this task?

TIA....

Select Source File Pathname

Upload

Browse……
 

Attachments

  • FileUpload.jpg
    FileUpload.jpg
    8.2 KB · Views: 129
Look into FileDialog object and VBA's Copy method.
 
Hi Banana,

Appreciate if you could pass me the full code.

I have no clue on how to go about it...


Tks
 
The information is available and can be searched by googling.

Here's one article on FileDialog Object

Google on Copying a file in VBA

Also, for more reference, look in the help files by using VBA Editor's help search (in the upper right corner); the help files are more extensive in VBA Editor compared to Access's help files, and you should be able to find several examples.

Good luck.
 
Thanks,

I found the code to execute this function.:)
 

Users who are viewing this thread

Back
Top Bottom