![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I need to import a CSV file through a url directly into Access 2007. I can import into Excel then import the excel file into Access, but can't figure out how to do it directly from Access. Is it even possible? It's easy to google when you know the words - from 'vba http GET' -
|
#3
| |||
| |||
|
|
JackonLI wrote: I need to import a CSV file through a url directly into Access 2007. I can import into Excel then import the excel file into Access, but can't figure out how to do it directly from Access. Is it even possible? It's easy to google when you know the words - from 'vba http GET' -first hit: Sub testwget() Dim objHttp As Object Set objHttp = CreateObject("MSXML2.ServerXMLHTTP") objHttp.Open "GET", "http://google.com/", False objHttp.send "" MsgBox objHttp.responseText End Sub Finaly, the responseText is to bee insertet in table - here there is the choice between saving as file an import using docmd.transfertext or looping over lines and executing sql insert statements. |
#4
| |||
| |||
|
|
objHttp.Open "GET", "http://google.com/", False I don't understand what this is actually doing. Where is the file the code is retrieving? |
#5
| |||
| |||
|
|
On Thu, 28 Apr 2011 14:25:16 -0600, PW emailaddyinsig (AT) ifIremember (DOT) com> wrote: objHttp.Open "GET", "http://google.com/", False I don't understand what this is actually doing. Where is the file the code is retrieving? Replace google.com with the complete URL to the file. Tony |
![]() |
| Thread Tools | |
| Display Modes | |
| |