Inserting non-local website image on a form

J

jameskass

How would one make access display an image from a website based on
another field in the same form?

here's what I'm looking to do. I've got one field that has an id
number. Let's say for example that in this particular record, the id
number is 12345. (I know, the same number I have on my luggage.)

In another part of the form, i want access to retrieve an image on my
website: mysite.com/12345.jpg -- and display it on the form.

Is this even possible? Maybe with an ActiveX or some fancy VB? Any help
would be greatly appreciated.
 
A

Arvin Meyer [MVP]

You can't display an image from the internet in an image control, but you
can add an IE browser control to your form and display an image on the
resulting web page.

Open the form in Design View and click on the "more controls" button. Add a
WebBrowser control. Save the form and close it. Reopen the form in design
view and resize the control to the dimensions you wish, and save it again.
Add code to the form's current or open even:

Me.WebBrowserControlName.Navigate http://www.datastrat.com

That's it.
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads
http://www.datastrat.com
http://www.mvps.org/access
 

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