Troy,
The Forms collection is 0-based, so the first form is 0, second form is 1. And there is no Field collection on Form object, but there is an Elements collection, which is 0-based as well.
Note: some elements are excluded from Elements collection.
Look into getElementsByTagName and the Item collection.
? Thisform.oleWebBrower.Document.Forms(0).elements(0).name
Thisform.oleWebBrower.Document.Forms(0).elements(0).value = "123"
HTH.
Wan
>Using the Microsoft Web Browser control, how can I enumerate thru the forms and field to get a list of names and values? In other words, I need to navigate to any site and want to display the form field names for each form and their values.
>
>I can get as far as olewebbrowser.document.forms, but I always get a syntax error when trying ...forms(1).field(1)...
>
>
>
>Thanks,
>Troy