Executing Javascript in WebBrowser Control stopped working after upgrade to Access 2010
- by Noah
BACKGROUND: The following works in Access 2007, but broke when I installed 2010
I have a WebBrowser control in an Access Form; I set its location as follows
Me.WebBrowser0.ControlSource = "http://foo.com"
and then execute a script in the page
Script = "StartScript(null);"
Me.WebBrowser0.Object.Document.parentWindow.execScript Script, "JavaScript"
This worked just fine in Access 2007, but after installing 2010 I get the following pop-up error:
Run-Time error '-2147024891 (80070005)':
Access is Denied.
Any ideas?