A
Adrian Jones
I've a database which imports data from a form in an HTML. Yes, I know, it's
a convoluted and inefficient way of doing things, but that's what I inherited
and I've not had the time to re-write it yet. And it works. Or it did until
my PC was upgraded.
With Access 2003 and Internet Explorer 7 the following would create an
HTMLDocument object from which I could extract the field values:
Dim TheBrowser As InternetExplorer
Dim TheDocument As HTMLDocument
Set TheBrowser = CreateObject("InternetExplorer.Application")
TheBrowser.Visible = True
TheBrowser.navigate url:="C:\TestFile.html"
Set TheDocument = TheBrowser.Document
Now I have Access 2007 and IE8, it works up until I send navigate to
TheBrowser. The page loads correctly, but every varaiable in TheBrowser
becomes "<Automation Error>".
So, obviously, trying to extract Document from TheBrowser fails with an error:
Run-time error '-2147023179 (800706b5)'
Automation Error
The interface is Unknown
I've searched for some explanation on-line, but to no avail. Has anyone else
come across this problem? And hopefully found a soluton?
Thanks in advance,
Adrian
a convoluted and inefficient way of doing things, but that's what I inherited
and I've not had the time to re-write it yet. And it works. Or it did until
my PC was upgraded.
With Access 2003 and Internet Explorer 7 the following would create an
HTMLDocument object from which I could extract the field values:
Dim TheBrowser As InternetExplorer
Dim TheDocument As HTMLDocument
Set TheBrowser = CreateObject("InternetExplorer.Application")
TheBrowser.Visible = True
TheBrowser.navigate url:="C:\TestFile.html"
Set TheDocument = TheBrowser.Document
Now I have Access 2007 and IE8, it works up until I send navigate to
TheBrowser. The page loads correctly, but every varaiable in TheBrowser
becomes "<Automation Error>".
So, obviously, trying to extract Document from TheBrowser fails with an error:
Run-time error '-2147023179 (800706b5)'
Automation Error
The interface is Unknown
I've searched for some explanation on-line, but to no avail. Has anyone else
come across this problem? And hopefully found a soluton?
Thanks in advance,
Adrian