Darren DICK
d.dick at uws.edu.au
Mon Dec 20 17:38:46 CST 2004
Hi all I am most grateful for all the suggestions And thanks to all who shared their code (Gotta love this list) <VBG> >From what I can see I can't actually do what I set out to do That is - use the link table wizard to 'connect' to a text file on a web site. What I will do is (as Stuart Suggested) just FTP the text file from my website to the back end location (I have a code routine in the back end for autoupdating) And set up the link table wizard to that FTP'd text file and read the version from that And then run the necessary code if a newer version exists. Many many thanks again to all who responded DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Tuesday, 21 December 2004 5:59 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2003:Connect to a text file at a web address Well there is the Inet Internet transfer control not sure if it is attached to IE dll's or you could try 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 Sub tryurl() Dim retVal As Long Dim URL As String Dim LocalFileName As String ' change this line to the URL of the file: URL = "http://www5.brinkster.com/mconnelly/GenericDB/ordersSubFormform.txt" ' change this line to the local filename to save the file as: LocalFileName = "c:\temp\testform.txt" retVal = URLDownloadToFile(0, URL, LocalFileName, 0, 0) If retVal = 0 Then Debug.Print "File received." Else Debug.Print "Unable to download file." End If End Sub Stuart McLachlan wrote: >On 19 Dec 2004 at 23:37, MartyConnelly wrote: > > > >>' I am using latest Version of IE6 >>' should also work with IE5.0 MSXML ver 2.0,2.6, 3.0 etc >> >> >> > >And for the growing number of people like myself who use Firefox and >have their firewall block IE from accessing the Internet? :-) > > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com