quote:
Originally posted by Mike2
Try using an API call to download the DB.
Example from AllApi:
code:
Private Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" (ByVal pCaller As Long, ByVal szURL As String, ByVal szFileName As String, ByVal dwReserved As Long, ByVal lpfnCB As Long) As Long
Public Function DownloadFile(URL As String, LocalFilename As String) As Boolean
Dim lngRetVal As Long
lngRetVal = URLDownloadToFile(0, URL, LocalFilename, 0, 0)
If lngRetVal = 0 Then DownloadFile = True
End Function
Private Sub Form_Load()
'example by Matthew Gates (Puff0rz@hotmail.com)
DownloadFile "http://www.allapi.net", "c:\allapi.htm"
End Sub
Thanks Mike2, i am in the process of testing to see if it works.
How would i go about haing the progressbar update in order to show the progress of downloading the Access document? I had it working using my previous download method (see my code on in the first post), but how would i change the code to work with this new download method?
Edit: Also, where would i insert code for my program to perform a task once the download is complete.
Thanks in advance
RileyM