Thanks Sergey
I didn't know they had a log in page. Alway used the welcome page. It works now that I have the correct url.
Thanks again
Gaylen
>Try to go directly to the login page
>
>oIE.Navigate2("https://wwws.ameritrade.com/apps/LogIn")
>...
>
>
>>One question - I got it to work for a number of web sites I access with the exception of one. The web site is as follows:
>>
>>
>>
>>oIE.Navigate2("http://www.tdameritrade.com/welcome1.html")
>>
>>
>>I use the following code to enter the values.
>>
>>
>> WITH oIE.document.forms("li")
>> .userid.value = lcUsername
>> .Password.Value = lcPassword
>> .Submit()
>> ENDWITH
>>
>>
>>Using view source I thought the name of the login form was "li", however
>>it errors out on the first line with a data type mismatch error. So evidently the form was not named 'li'.
>>
>>Any ideas Sergey or anyone else who has tried to autofill from VFP.
>>
>>Thanks in Advance
>>Gaylen