I can control the input to fields on a web page fine if using a new IE window with the following code:
However I am now trying to do the same with the web browser control in access 2010 with
but get the error on the highlighted code, "method or data member not found"
Any ideas??
Code:
Dim IE As Object
Dim URL As String
Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = True
URL = "example"
IE.navigate (URL)
Do While IE.ReadyState <> 4 And IE.Busy
DoEvents
Loop
IE.Document.all.Item("username").Value = "xxxx"
IE.Document.all.Item("password").Value = "xxxx"
IE.Document.Forms(1).submit
However I am now trying to do the same with the web browser control in access 2010 with
Code:
[COLOR=black]Private Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant)[/COLOR]
[COLOR=red]WebBrowser1.Document[/COLOR].all.Item("username").Value = "xxxx"
WebBrowser1.Document.all.Item("password").Value = "xxxx"
WebBrowser1.Document.Forms(1).submit
End Sub
Any ideas??