Web Browser Auto Login

fcmsb13

Registered User.
Local time
Today, 12:36
Joined
Nov 26, 2006
Messages
13
Hi Access World Community,
Im fairly new to vba and was wondering how I can refer to a username field and login field on a website that is within my Microsoft Web browser control.
I have some code below but it is giving me error91 Object vairable or With Block variable not set.
Code:
Private Sub Combo2_AfterUpdate()
Me.WebBrowser1.Navigate URL:=Me.Combo2.Text
Me.WebBrowser1.Document.Username.Value = "tester"
End Sub
It navigates to the site fine so it is narrowed down to {Me.WebBrowser1.Document.Username.Value} being the problem.
P.S. The website is https://www.taylorbeandirect.com/default.aspx
 
re:

Hi,
you have to specifically refer to the input field itself.
Try this after you navigated to the URL:

Me.WebBrowser1.Document.All("UserName").Value = "tester"

HTH
Good Luck
 
Works Great, i just need to click the login button now, how is that done?
 
Last edited:
re:

What is the complete code you are using. What line does it break on?
HTH
Good luck
 

Users who are viewing this thread

Back
Top Bottom