Question : Automation error in Vista CreateObject("InternetExpl<wbr />orer.appli<wbr />cation")

Hi,

My Access program has a piece of code to access yahoo web site to pull stock info from webpage. It works fine under winXP but stoped working under Vista, The error essage is, "Run Time error 462:  the remote server machine does not exist or is unavailable".
           Dim a As Object
           Set a = CreateObject("InternetExplorer.application")
                linkURL = "http://finance.yahoo.com/q/ks?s=" & txtTickerSymbol.value)
            a.Navigate ("" & linkURL & "")  && error from this line

Thanks,
Sheldon
 

Answer : Automation error in Vista CreateObject("InternetExpl<wbr />orer.appli<wbr />cation")

Try this:
1:
2:
3:
4:
5:
6:
    Dim a As Object
    Set a = CreateObject("InternetExplorer.application")
    Dim linkUrl As String
    linkUrl = "http://finance.yahoo.com/q/ks?s=" & Me.txtTickerSymbol.Value
    a.Navigate linkUrl
    a.Visible = True
Random Solutions  
 
programming4us programming4us