R
ReidarT
I use an activeX control to upload files from a local machine to a Web-site.
I use the activeX-control msinet.ocx.
This works fine on my Notebook with Office 2003 installed.
I have copied the application to another network, copied the
activeX-component to system32 folder, registered the component sucessfully.
Here is the code
1 Dim strHostName As String
2 Dim strUserName As String
3 Dim strPassword As String
4 Dim LocalFileName As String
5 Dim RemoteFileName As String
6 Dim ftp As Inet
7 LocalFileName = "H:\path\access.mdb"
8 RemoteFileName = "www.url.com/access.mdb"
9 strHostName = "www.url.com"
10 strUserName = "username"
11 strPassword = "password"
12 'RemoteFileName = strRemotePath & strExpFilNavn
13 Set ftp = New Inet
14 With ftp
15 .Protocol = icFTP
16 .RemoteHost = strHostName
17 .UserName = strUserName
18 .Password = strPassword
19 .Execute .URL, "Put " + LocalFileName + " " + RemoteFileName
20 Do While .StillExecuting
21 DoEvents
22 Loop
23 End With
24 Set ftp = Nothing
On the Access2000 version it stops on line 6.
regards
reidarT
I use the activeX-control msinet.ocx.
This works fine on my Notebook with Office 2003 installed.
I have copied the application to another network, copied the
activeX-component to system32 folder, registered the component sucessfully.
Here is the code
1 Dim strHostName As String
2 Dim strUserName As String
3 Dim strPassword As String
4 Dim LocalFileName As String
5 Dim RemoteFileName As String
6 Dim ftp As Inet
7 LocalFileName = "H:\path\access.mdb"
8 RemoteFileName = "www.url.com/access.mdb"
9 strHostName = "www.url.com"
10 strUserName = "username"
11 strPassword = "password"
12 'RemoteFileName = strRemotePath & strExpFilNavn
13 Set ftp = New Inet
14 With ftp
15 .Protocol = icFTP
16 .RemoteHost = strHostName
17 .UserName = strUserName
18 .Password = strPassword
19 .Execute .URL, "Put " + LocalFileName + " " + RemoteFileName
20 Do While .StillExecuting
21 DoEvents
22 Loop
23 End With
24 Set ftp = Nothing
On the Access2000 version it stops on line 6.
regards
reidarT