Solved

OpenURL method

Posted on 2003-11-19
5
394 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
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.

707 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