Question : From an MS Access Form how do I open a web site then automaticly fill in the login and password box from data in my table?

I am using MS Access 2003. I want to use a command button on my form to open a web site then fill in the log in and password box from data in my database and then hit enter automatically.  The web site, user name and password are in my table.

Answer : From an MS Access Form how do I open a web site then automaticly fill in the login and password box from data in my table?

Here is a little trick that I found. It works too. You will need to look at the source code of the web site you are working with to see what your controls are but you will be able to find them.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
Private Sub btnJamesHardie_Click()
Dim objIE As Object
Set objIE = CreateObject("InternetExplorer.Application")
 
    With objIE
    .Visible = True
    .Navigate "your web site"
        Do While .ReadyState <> 4
            DoEvents
        Loop
 
        With .Document.Forms(0)
            .UserName.Value = "your login"
            .Password.Value = "your password"
            .Document.loginForm.submit
            
         End With
    End With
End Sub
Open in New Window Select All
Random Solutions  
 
programming4us programming4us