B
Bruce
Hi,
When I run the following function I get 'Access is Denied' at line '
objWeb.Send'. The exact same Function works in another database I have, on
the same system with the same reference.
Any ideas what the problem might be?
Bruce
Function YahooQuotes(URL As String)
Dim objWeb As Object
Dim intFile As Integer
Dim strFile As String
Dim strHTML As String
Set objWeb = CreateObject("Microsoft.XMLHTTP")
objWeb.Open "GET", URL, False
objWeb.Send
strHTML = objWeb.responseText
strFile = CurrentProject.Path & "\Download\" & "YahooDownload.csv"
intFile = FreeFile()
Open strFile For Output As #intFile
Print #intFile, strHTML
Close #intFile
End Function
When I run the following function I get 'Access is Denied' at line '
objWeb.Send'. The exact same Function works in another database I have, on
the same system with the same reference.
Any ideas what the problem might be?
Bruce
Function YahooQuotes(URL As String)
Dim objWeb As Object
Dim intFile As Integer
Dim strFile As String
Dim strHTML As String
Set objWeb = CreateObject("Microsoft.XMLHTTP")
objWeb.Open "GET", URL, False
objWeb.Send
strHTML = objWeb.responseText
strFile = CurrentProject.Path & "\Download\" & "YahooDownload.csv"
intFile = FreeFile()
Open strFile For Output As #intFile
Print #intFile, strHTML
Close #intFile
End Function