Link to internet image from a form?

M

Mick

Here's what I want to do... I have a DVD database in which I include a
link to the particular movie being viewed in the form to IMDB.com. I
noticed on the majority of the IMDB pages there is an image of the DVD
box cover as well and I thought, 'wow! It'd be cool to have that image
appear in the record for the DVD in my database'. Is there any way to
put a link like :

http://ia.imdb.com/media/imdb/01/I/76/09/88m.jpg

in the record for each movie (meaning a seperate link for each seperate
record/dvd) and set the form up to display the actual image?

Thanks for any input!

Mick
 
A

Arvin Meyer [MVP]

You can display images from the Internet, but you must do it using an IE
browser control. In design view, click on the "More Controls" button on the
toolbox and pick the Microsoft Web Browser control. Put it on your form and
create a text field in the underlying table with a textbox on the form to
hold the URL. In the form's current event use some code like:

Me.IEControlName.Navigate Me.txtURL
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads
http://www.datastrat.com
http://www.mvps.org/access
 
D

Douglas J Steele

What version of Access?

See whether the following works.

Create a form and add a Web Browser to it (you can use the Insert | ActiveX
Control... from the menu, and scroll through until you find the Microsoft
Web Browser entry) For the example below, I chose to rename the control
ocxBrowser.

Then, when you want to display the picture, try:

Dim strURL As String

strURL = "http://ia.imdb.com/media/imdb/01/I/76/09/88m.jpg"
Me.ocxBrowser.Navigate strURL

(The reason I asked what version of Access, and sound tentative about it is
that I know there's a problem making this work in Access 97, due to
incompatibilities between Access 97 and newer versions of IE, where the Web
Browser comes from. I believe it works in Access 2000 and newer, though)
 

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

Top