Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / October 2007

Tip: Looking for answers? Try searching our database.

Object required error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Luis - 09 Oct 2007 11:48 GMT
Hello i'm trying to create a WinHttp Request object but i get the error
"Object required". What libraries must i use to do this?

The code i'm using is the following:

dim HttpReq
Set HttpReq = server.CreateObject("WinHttp.WinHttpRequest.5.1")

Thanks.
BeWyched - 09 Oct 2007 13:20 GMT
Hi Luis

try:

Microsoft WinHTTP Services version...

Cheers.

BW

> Hello i'm trying to create a WinHttp Request object but i get the error
> "Object required". What libraries must i use to do this?
[quoted text clipped - 5 lines]
>
> Thanks.
BeWyched - 10 Oct 2007 09:21 GMT
Hi, me again.

Just spotted that your 2nd line of code dooesn't need the 'server' part.

Should read:

Set HttpReq = CreateObject("WinHttp.WinHttpRequest.5.1")

This will create the object on your local machine. If you do want it
creating elsewhere then the line should read:

Set HttpReq = CreateObject("WinHttp.WinHttpRequest.5.1", "servername")

Cheers.

BW

> Hello i'm trying to create a WinHttp Request object but i get the error
> "Object required". What libraries must i use to do this?
[quoted text clipped - 5 lines]
>
> Thanks.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.