Error when getting a web page from Access

  • Thread starter lance mcgonigal
  • Start date
L

lance mcgonigal

Hi...Thanks in advance for your help.

I'm trying to post a string to a website to log some data and I'm getting
the following error:

Run-Time Error '-2146697211 (800c0005)':
The system cannot locate the resource specified.

Here's the code:

Function GetPage(PageName)

Dim objSvrHTTP

Set objSvrHTTP = CreateObject("Msxml2.XMLHTTP.4.0")
objSvrHTTP.Open "GET", PageName, False

objSvrHTTP.send

GetPage = CInt(Replace(objSvrHTTP.responseText, "|", ""))

End Function

Environment:

Windows XP Home
Access 2007
References
VBA
Access 12 Object Library
ActiveX Data Object 2.1 library
Office 12 object library

Thanks again.
 

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

Similar Threads

Problems starting Word from Excel VBA 3
Exporting from Excel to Access 2
access runtime error 1
Stream 1
Run Time Error = 432 6
Ribbon callback error 1
Argument not optional error 1
Access 2007 Conversion Issue 5

Top