Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IE Automation Problem

Status
Not open for further replies.

robcarr

Programmer
May 15, 2002
633
GB
Hi,

i use the below coding to enter username and password into a form and it doen't submit.

Code:
With .Document.forms("oFormMain")
      .UserName.Value = "username"
      .Password.Value = "password"
      .submit
         End With

any ideas why it doesnt work, the form just resets to the username again

Hope this is of use, Rob.[yoda]
 
Are you trying to update an Access Data Page, or a page from a website? If from a website, you probably would have to use SendKeys in combination with getting the windows handle for the particular IE Window you're wanting to work with. Be aware, though, SendKeys is a buggy way of getting things done - it's almost guaranteed it'll not do what you want at least one time, though it may work 99% of the time correctly.

--

"If to err is human, then I must be some kind of human!" -Me
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top