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