Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Forms with Embedded WebBrowser

Status
Not open for further replies.

MikeC14081972

Programmer
May 31, 2006
137
GB
Hi,

I'm Hoping someone can help. I'm using Access 2000 and have a form with a embedded web browser that will be used to download a file.

The code used to navigate to the webpage and enter the required details is as follows

Code:
Private Sub Form_Load()
Dim IE As Object
Dim URL As String

Set IE = Me.ADPBrowser.Object

URL = "Required Page"

With IE
    IE.NAVIGATE URL
End With

While IE.BUSY
    DoEvents
Wend

With IE
    .Document.all("list").Select
    .Document.all("list").Value = "Required value" 
    .Document.all("submit").Select
    .Document.all("submit").Click
End With

While IE.BUSY
    DoEvents
Wend

End Sub

i can get access to pass in the cusip and simulate a user clicking the submit button but this is where my problems start.

I'm then faced with a Windows Message Box asking if I want to 'Open' 'Save' or 'Cancel'.

Does anyone know how to control this message box as it's outside of access. I need to select 'Save' and then pass in the filename and select save again.

many Thanks

If you make something idiot proof - They'll Only make a better idiot!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top