Solved

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

Posted on 2014-02-15
2
475 Views
Last Modified: 2014-02-17
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
Comment
Question by:SteveL13
2 Comments
 
LVL 16

Accepted Solution

by:
Sheils earned 250 total points
ID: 39862218
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
 
LVL 39

Assisted Solution

by:als315
als315 earned 250 total points
ID: 39862430
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
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…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

762 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now