Hi Experts,
I'm hoping someone can help shed some light on a issue I am having with MS Access 2013 using Active X Web Browser Controls in Windows 10.
I am a intermediate dev working with VBA, so heres my issue;
I would like my form On Load event to navigate to a URL and then change some the Web Control Browser properties.
Below is the code I am currently trying to make work;
When I run the above code, it gives error of 91, BUT I can just F8 through the rest of the code and all works as intended !?Code:Private Sub Form_Load() Dim objWB As Object WebBrowserGIF.Navigate "about:blank" While WebBrowserGIF.busy DoEvents Wend Set objWB = Me.WebBrowserGIF.Object With objWB Forms![frmADMIN]![WebBrowserGIF].Navigate "C:\Sample.gif" Forms![frmADMIN]![WebBrowserGIF].Document.Body.setattribute "scroll", "no" <-- err 91 starts here Forms![frmADMIN]![WebBrowserGIF].Document.Body.bgcolor = &H0 Forms![frmADMIN]![WebBrowserGIF].BorderStyle = 0 Forms![frmADMIN]![WebBrowserGIF].BorderColor = vbBlack End With End Sub
Can someone please help me with the script or provide a better example, method or approach?
Ive been looking around the web so search for answers/help, and not much luck yet.
Thanks to all in advance!