Linking image to Access report

Posted on 2014-09-11
Medium Priority
Last Modified: 2014-09-12
I have a report with an order number e.g. '12345'. I have an image called '12345.jpeg' saved in C:\temp

Does anyone know how to embed the image in the report dynamically so when I generate it the correct image is displayed and the link works automatically?
Question by:HKFuey
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
  • 4
  • 3
  • 2
LVL 58

Assisted Solution

by:Jim Dettman (Microsoft MVP/ EE MVE)
Jim Dettman (Microsoft MVP/ EE MVE) earned 800 total points
ID: 40316987
1. Place an image control on the report.
2. Set its picture type property to linked.
3. In the sections OnFormat event, set the Picture property of the control to the path to the image.

LVL 85

Accepted Solution

Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 1200 total points
ID: 40316988
I believe 2007 allows you to "bind" a Picture control to a filepath, so try this:

Create a query that includes a calculated field:

ImagePath: "C:\Temp" & Order_Number & ".jpeg"

Now build your report, add a Picture control, and set the ControlSource of that control to the ImagePath field in your query.
LVL 58
ID: 40316998
FYI, you might also want to check out:


Which sells DBPix making image control very painless.  There is a free trial if you want to try it out.

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments


Author Comment

ID: 40317095
Hi Jim,
Tried the on format, I get "error 2114 Access does not support or file is too large...." (format is jpeg)

Hi Scott,
I added the path to the query and referenced it on the control source of the image, I got no error or image.
LVL 85
ID: 40317141
Are you 100% sure the path and file extension are correct? The Picture control will simply not show the item if it can't find it, with no error. Be sure your images are actually JPEG images, and not JPG or some other format.

Also: I forgot to include the trailing backslash. The calculated field should read:

ImagePath: "C:\Temp\" & Order_Number & ".jpeg"

Author Comment

ID: 40317320
Hi Scott,
This is the actual formula: -
SigLoc: "C:\Temp2\" & [dbo_MdnMaster].[DispatchNote] & ".jpeg"

If I put the result in a web browser it brings up the image (attached)000000000551482.jpeg

Author Comment

ID: 40317323
LVL 85
ID: 40317522
See this MSFT article:


That points to a hotfix here:


Looks like in some cases an update would restrict you from using certain image formats unless you've applied the hotfix.

Author Closing Comment

ID: 40319200

Scott, I downloaded a program called TotalImageConverter, converted the files then your first suggestion works I just link to the png file.

strPath = "C:\Program Files (x86)\TotalImageConverter\ImageConverter.exe" & " C:\Temp2\" & Dnote & ".jpeg" & " C:\Temp2\" & Dnote & ".png" & " -fo"
Retval = Shell(strPath)

The '-fo' parameter overwrites without prompt. Cost of full program TotalImageConverter about £12

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
Suggested Courses

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