Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 506
  • Last Modified:

How populate image on a form from a hyperlink on the same form?

I have a form which has a hyperlink field.  That hyperlink field could be either a link to a web address or a link to a folder address on the computer the database is installed on.

But what I want to have happen is on the same form, have that image appear in a "picture" box.

I don't know how to make that happen.
0
SteveL13
Asked:
SteveL13
2 Solutions
 
SheilsCommented:
Checkout this sample db.

Download the pictures into the same folder.

NB:-

The code that makes it work is in the form oncurrent event.
I have used currentproject.Path in my code so that it works on your computer but you can hard code the actual file path. You can also enter the entire path in the table
There is no need to hyperlink
imagedb.accdb
Koala.jpg
Lighthouse.jpg
Tulips.jpg
0
 
als315Commented:
You can't display images from web with image control, but you can use web browser control, but it can't auto scale images. Look at sample (place it to the same folder as se9's sample)
imagedbweb.accdb
0

Featured Post

Technology Partners: 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!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now