Internet Explorer Object - Automation Error

A

Arjayen

I am attempting to navigate to a web page from an Access application with the
intent of parsing the web page. I'm getting an automation error #2147417848
- "The object invoked has disconnected from its clients."
It occurs on the statement: Set oPAGE = oIE.Document
The code preceeding the statement is:
Dim oIE as SHDocVw.InternetExplorer
Dim oPAGE as MSHTML.HTMLDocument

Set oIE = CreateObject("InternetExplorer.Application")
oIE.Navigate(URL)
Set oPAGE=oIE.Document

The web page opens in IE correctly but I get the error on the Set oPAGE.
I've studied the Navigate Method at the MSDN Library and can't see that any
of the optional parameters are needed.

I would appreciate some help.
 
D

dch3

I checked a script that's based on a sample that I found on the internet and
the syntax appears correct. You'll need to snoop around the internet for a
newsgroup more focused on IE and internet development as most of us here are
primarily Access experts with knowledge of the other Office apps being
secondary. Although you're writing code in Access, you're actually trying to
automate IE hence its an IE programming question not 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