How can I programmatically click on an image button to submit a form
I am using the IE web browser object in a MS Access form to automatically log into my online telephone account, although I am having a problem submitting the form. I am using the following visual basic code:
DoEvents: DoEvents: DoEvents
Do While WebBrowserCallagenix.Busy 'wait until the page loads by looping
Set doc = WebBrowserCallagenix.Document 'access the document properties
Do While WebBrowserCallagenix.Busy
returnValue = FillForm("pAccountCode", "my_account", False)
returnValue = FillForm("pPassword", "my_password", False)
The above code enters the account name and password into the appropriate fields but I then receive the following error message:
'Object doesn't support this property or method'
I think the issue is to do with the fact that the form uses the post method and/or an image for the login button, but this doesn't help me figure out how to submit the form.