Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: Access 03 HTTP requests >Thread Next - Re: Access 03 HTTP requests Re: Access 03 HTTP requestsTo: NULL Date: 2/20/2009 8:23:00 AM On Feb 20, 6:10=A0pm, Martin Honnen <mahotr...@yahoo.de> wrote:
> j...@kosmosbusiness.com wrote:
> > I am trying to use late binding with MSXML.dll to send HTTPRequests
> > from within Access
>
> > =A0 =A0 =A0 =A0Dim httpObj As Object
> > =A0 =A0 =A0 =A0Set httpObj =3D CreateObject("MSXML.XMLHTTPRequest")
>
> > It compiles OK but when I run I receive the following error.
> > "Run-time error '429': ActiveX component can't create object"
>
> > Any ideas on how to properly define the type?
>
> =A0 =A0Set httpObj =3D CreateObject("Msxml2.XMLHTTP.3.0")
> respective, if it is ASP:
> =A0 =A0Set httpObj =3D Server.CreateObject("Msxml2.ServerXMLHTTP.3.0")
>
> The suffix (e.g. 3.0) can be changed to 6.0 to use MSXML 6 components.
>
> --
>
> =A0 =A0 =A0 =A0 Martin Honnen --- MVP XML
> =A0 =A0 =A0 =A0http://JavaScript.FAQTs.com/
Hi Martin,
After some struggling the following works and I was able to send http
requests from within Access 03
Dim httpObj As Object
Set httpObj =3D CreateObject("Microsoft.XMLHTTP")
You mention MSXML 3 & 6 components. I thought late binding was
supposed to be generic so that it is guaranteed to work on any PC. If
we specify a specific MSXML component, wouldn't this cause a potential
problem?
Thanks,
John
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
