Try using an INKEY(3) (a pause to permit the page to load). If the page isn't completly loaded the document does not exist.
>Hi all,
>
>When I use the next code with automation of IE, then it works fine. On the other hand when I use the webbrowser control on a form, i get an error message: "Member Form doesn't evaluate to an object". Here's the code:
>
>
>THISFORM.oWebBrowser.Document.Forms(0).item("strUserID").Value = cGebruikersnaam
>
>
>Could someone explain why ?
>
>Thank you.
>Zakaria al Azhar