Click here to Skip to main content
15,893,381 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I need to open gamil via ms access form by click a button and automatically insert the user id and password and enter the button login.

nb. i have found this code that work under vb but i can not covert it to ms access

http://www.angelfire.com/realm/vb-shared/IE_WB_DOM_tips.htm

thanks
Posted
Comments
hkh1967 30-Mar-12 8:16am    
thanks alot Slacker007 but i have another question.
acutaly my web is differ see attached. i want after opening the web to click the user login button.
'Author: Victor LAN
'Email: victorlan.allexperts@gmail.com
'Date: 19 Dec 2009
'
'Sub: IE_Login_Hotmail
'Version: 1
'
'Include References
'--------------------
'Microsoft Internet Controls
'==========================================
' Sub IE_Login_Hotmail()

Dim objIE As InternetExplorer


Set objIE = New InternetExplorer

objIE.Navigate "http://www.world-check.com/"
objIE.Visible = True


'Loop unitl ie page is fully loaded
Do Until objIE.ReadyState = READYSTATE_COMPLETE
Loop




On Error Resume Next
' objIE.Document.getElementById("i0116").Value = "xxxx@hotmail.com" 'username
' objIE.Document.getElementById("i0118").Value = "xxxxxxx" 'password

objIE.Document.getElementById("user login").Click




Set objIE = Nothing

'End Sub

1 solution

http://en.allexperts.com/q/Excel-1059/2009/12/Excel-VBA-Internet-Explorer.htm[^]

It's for Excel but VBA is used and that is what you use with MS Access.

-- simple Google search.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900