Are these the same?

  • Thread starter Thread starter DS
  • Start date Start date
D

DS

Are these two statements the same?
The first one is VB6
Set WinHttpReq = New WinHttpRequest
This is in VBA Access
Set WinHttpReq = CreateObject("WinHttp.WinHttpRequest.5.1")
I tried the second one because Access didn't seem to reconize the first one.
Any help is appreciated.
Thanks
DS
 
DS said:
Never Mind. I was Missing references. Al is fine.
DS

The second one (that doesn't need the references) is the better method.
 
Thanks Rick, thats good to know. Can you donthe same with other references?
Thanks
DS
 
DS said:
Thanks Rick, thats good to know. Can you donthe same with other
references? Thanks
DS


I have found none that cannot be used that way.

Open a new blank MDB in the version of Access you are using and look at the
references that are checked by default. In my opinion (almost) no
application should have any additional references checked if that app is to
be shared with other users. Any other libraries that need to be utilized
can use late binding (the CreateObject() method).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top