UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome to UtterAccess! Please ( Login   or   Register )

Custom Search
 
   Reply to this topicStart new topic
> Ms Web Browser Activex Finds Script Error On The Web Page, Access 2016    
 
   
JohnvanSomeren
post Sep 19 2019, 04:09 AM
Post#1



Posts: 669
Joined: 31-August 12
From: London, England


Hi
I am using the Miscrosoft Web Browser ActiveX control to display a UK government web site of official UK bank holidays https://www.gov.UK/bank-holidays and the form holding the control shows this error message:
Attached File  Capture.PNG ( 32.8K )Number of downloads: 9

Google Chrome shows the page without errors.

I would like to display the page without errors. Any ideas?

In case it helps, the control shows that its Class is Shell.Explorer.2, but this is no help to me at all. I first developed this form several years ago in Access 2010, and imported it into this Access 2016 accdb file.I rebuilt the control last week and the problem remained.

Thanks.
Go to the top of the page
 
DanielPineault
post Sep 19 2019, 06:48 AM
Post#2


UtterAccess VIP
Posts: 6,901
Joined: 30-June 11



Look over http://www.devhut.net/2013/10/18/webbrowse...cripting-error/

--------------------
Daniel Pineault (2010-2019 Microsoft MVP, UA VIP, EE Distinguished Expert 2018)
Professional Help: https://www.cardaconsultants.com
Free MS Access Code, Tips, Tricks and Samples: https://www.devhut.net

* Design should never say "Look at me". It should always say "Look at this". -- David Craib
* A user interface is like a joke, if you have to explain it, it's not that good! -- Martin LeBlanc


All code samples, demonstration databases, links,... are provided 'AS IS' and are to be used at your own risk! Take the necessary steps to check, validate ...(you are responsible for your choices and actions)
Go to the top of the page
 
JohnvanSomeren
post Sep 22 2019, 01:54 AM
Post#3



Posts: 669
Joined: 31-August 12
From: London, England


Many thanks. Where would we be without you!
John
Go to the top of the page
 
arnelgp
post Sep 22 2019, 05:12 AM
Post#4



Posts: 1,474
Joined: 2-April 09
From: somewhere out there...


on the Load Event of your form:

Private Sub Form_Load()
Me.webbrowser1.Silent = True
End Sub

--------------------
Never stop learning, because life never stops teaching.
Go to the top of the page
 
DanielPineault
post Sep 22 2019, 05:51 AM
Post#5


UtterAccess VIP
Posts: 6,901
Joined: 30-June 11



CODE
Me.webbrowser1.Silent = True

will, work, but it just hides the error itself. You're much better changing the emulation mode to make the ActiveX compatible and avoid the error in the first place and make the webpage work as it was intended.

--------------------
Daniel Pineault (2010-2019 Microsoft MVP, UA VIP, EE Distinguished Expert 2018)
Professional Help: https://www.cardaconsultants.com
Free MS Access Code, Tips, Tricks and Samples: https://www.devhut.net

* Design should never say "Look at me". It should always say "Look at this". -- David Craib
* A user interface is like a joke, if you have to explain it, it's not that good! -- Martin LeBlanc


All code samples, demonstration databases, links,... are provided 'AS IS' and are to be used at your own risk! Take the necessary steps to check, validate ...(you are responsible for your choices and actions)
Go to the top of the page
 
GroverParkGeorge
post Sep 22 2019, 12:31 PM
Post#6


UA Admin
Posts: 35,888
Joined: 20-June 02
From: Newcastle, WA


CODE
Me.webbrowser1.Silent = True


I don't seem to be able to find that property in VBA. How does one go about using it? References needed?

--------------------
My Real Name Is George. Grover Park Consulting is where I do business.
How to Ask a Good Question
Beginning SQL Server
Go to the top of the page
 
DanielPineault
post Sep 22 2019, 01:20 PM
Post#7


UtterAccess VIP
Posts: 6,901
Joined: 30-June 11



From my article (at the very end)
QUOTE
If you aren’t looking to fix the issue, but rather simply make the error not display, you can always place the following in the Form’s load event
CODE
Me.WebBrowserControlName.Object.Silent = True

--------------------
Daniel Pineault (2010-2019 Microsoft MVP, UA VIP, EE Distinguished Expert 2018)
Professional Help: https://www.cardaconsultants.com
Free MS Access Code, Tips, Tricks and Samples: https://www.devhut.net

* Design should never say "Look at me". It should always say "Look at this". -- David Craib
* A user interface is like a joke, if you have to explain it, it's not that good! -- Martin LeBlanc


All code samples, demonstration databases, links,... are provided 'AS IS' and are to be used at your own risk! Take the necessary steps to check, validate ...(you are responsible for your choices and actions)
Go to the top of the page
 


Custom Search


RSSSearch   Top   Lo-Fi    20th October 2019 - 08:58 AM