Solved

OpenURL method

Posted on 2003-11-19
5
388 Views
Last Modified: 2012-05-04
Hi I found a way to retrieve binary file from URL with this method in vb but I can't find the way to use it in access.
Someone can help me, give me an example?


http://support.microsoft.com:80/support/kb/articles/Q163/6/53.ASP&NoWebContent=1
0
Comment
Question by:meciab
  • 2
5 Comments
 
LVL 9

Expert Comment

by:svenkarlsen
ID: 9777361
Hi mecia,

first of all: you are aware that this is just usning a form in Access to do what you can much better do with Internet Explorer ? I.e.: this is not a 'function' it is an ActiveX object that you put on a form, and then click a button for operation.

If I am right in assuming that you want to do FTP from code, I suggest you have a look here instead:

 > http://www.vbip.com/winsock/index.asp

This is a really good source and explains everything, including some of the stuff that Microsoft doesn't document!

Kind regards,
Sven
0
 

Author Comment

by:meciab
ID: 9777478
No I just want to use this function in access, but i cannot find the way to reference OpenUrl method.

Function test()
Dim b() As Byte
Dim strURL As String
Dim SavPath As String

strURL = "http://experts-exchange.com/images/logo.gif"
SavPath = "c:\"

    b() = Inet1.OpenURL(strURL, icByteArray)
    'Write the image to a local file:
    Open SavPath & "test.jpg" For Binary Access _
    Write As #1
    Put #1, , b()
    Close #1

end function
0
 

Author Comment

by:meciab
ID: 9777541
Yopssssss.....
I found the answer to my question the reference to add is MSinet.ocx (Microsoft Internet Tranfer Control)
Thanks for your help
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 9802978
PAQed, with points refunded (500)

Computer101
E-E Admin
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Creating a Temp Table in MS Access 5 44
Undo Button 1 32
MS Access VBA Object Variable Not Set. Can't figure this out. 11 43
MS Access Query Question 2 34
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question