- Where Developers Learn, Share, & Build Careers
I am trying to add an html menu inside the access form. How do I get feedback from a webpage in Access (which user is selected in the web page) I am using the Access 2007, MS Webbrozer component.
Any help would be appreciated
Calling the hosting form or webbrowser There is no official way to start any activity from within.
However, there is a nifty trick that I use. After the document loads you can use some element to set up. Then you can reference the properties and methods of the form from within the webbrowser. Edit : The next option is to pass the access form ('m') into a variable in WebBrowser. However, this global variable or function is not directly visible. However, it can be easily removed by adding a function to the prototype of HTMLBodyElement, which argues for the global variable, and can return any class as well. In the html page, you will have: Just pass the reference below from the access: htmlDoc.all.formDiv.setAttribute "external form", me
Strangely, it seems that as long as I & lt; META http-equiv = 'X-UA-Compatible' content = 'IE = edge, chrome = 1' & gt; tag, the reference remains blank. It appears that the attributes are now more strict, and expecting the setAttribute string.
var frm = null; HTMLBodyElement.prototype.setForm = function (f) {frm = f}
htmlDoc.document.body.setForm (Me) .
Comments
Post a Comment