View Single Post
Join Date: Jan 2009
Posts: 10
Reputation: No Pain No Gain is an unknown quantity at this point 
Solved Threads: 0
No Pain No Gain No Pain No Gain is offline Offline
Newbie Poster

Downloading an mdb file using INET

 
0
  #1
Jan 10th, 2009
The code below downloads the test.mdb file but when I try to open it MS Access says it is in an unrecognised format.

Is it not possible to use Inet for downloading an Access database?

Dim strURL As String
Dim bData() As Byte ' Data variable
Dim intFile As Integer ' FreeFile variable

strURL = "http://www.asite/test.mdb"
intFile = FreeFile()
bData() = Inet1.OpenURL(strURL, icByteArray)
Open App.Path & "\test.mdb" For Binary Access Write As #intFile
Put #intFile, , bData()
Close #intFile
Reply With Quote