Importing information from the web using URL

S

Scott Royster

How do I call a website to query information and import
the information using its URL?
 
J

John Nurick

Hi Scott,

I haven't experimented with this enough to be sure it works reliably,
but it seems that if the web page can be obtained by typing a URL you
can just pass the full URL (including the http://) in the FileName
argument of DoCmd.TransferText acImportHTML.

Obviously this can't work on pages where the URL doesn't change with the
data (i.e. many heavily scripted sites). In that case I think you'd need
to have the user navigate to the right data and then save the HTML to a
disk file from which Acces could import it.

It may also be possible to use a WebBrowser control on a form and write
code to make it make the website display the data you want; this gives
you access to the HTML.


How do I call a website to query information and import
the information using its URL?

John Nurick [Microsoft Access MVP]

Please respond in the newgroup and not by email.
 
I

Ivan

Create an excel spreadsheet that uses a web query (your of
choice of url) then link this spreadsheet to the access DB.
Open the excel spreadsheet 'Refresh it !' save it and the
data is available to access.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top