Re: Save a File from a Text Box
- From: Stephen sjw_ost <Stephensjwost@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 31 Dec 2008 06:35:01 -0800
Alex, Thank you for your response.
Do you have any examples I can look at? I keep getting errors. I tred to use
the FileCopy for saving to a drive "H:\" but it did not work.
Function Upload()
Dim myPath As String
Dim mySharePoint As String
myPath = Form_f_GetFileandLocation.LocationFile1.Value
mySharePoint = "H:\"
FileCopy myPath, mySharePoint
End Function
The above code gives me
Run-time error '52':
Bad file name or number
I also would definately need an API example to FileCopy/SaveAs to a URL
"http://Intranet" using the path&filename found in
"Form_f_GetFileandLocation.LocationFile1.Value".
Thank you
Stephen
"Alex Dybenko" wrote:
Hi,.
I think you can just copy it, try to use FileCopy statement.
For HTTP://Intranet it is more tricky, you have to use API functions to
upload file for HTTP or FTP, much easier if you can also use UNC path and
copy file
--
Best regards,
___________
Alex Dybenko (MVP)
http://accessblog.net
http://www.PointLtd.com
"Stephen sjw_ost" <Stephensjwost@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:AAAA2503-30EC-4639-8F40-623A72DE58E1@xxxxxxxxxxxxxxxx
I have a Text Box on a Form that contains the full filepath and filename
of
the users choice. How can programically I use the filepath & filename,
from
the Text Box, to save the indicated file to a shared drive (Z:\) or shared
point (HTTP://Intranet)?
Thank you for any help.
Stephen
- Follow-Ups:
- Re: Save a File from a Text Box
- From: Dymondjack
- Re: Save a File from a Text Box
- References:
- Save a File from a Text Box
- From: Stephen sjw_ost
- Re: Save a File from a Text Box
- From: Alex Dybenko
- Save a File from a Text Box
- Prev by Date: Re: New problem for Access????
- Next by Date: Revert to std menus/toolbars during runtime
- Previous by thread: Re: Save a File from a Text Box
- Next by thread: Re: Save a File from a Text Box
- Index(es):
Relevant Pages
|
Loading