Linking image to Access report

Posted on 2014-09-11
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
  • 4
  • 3
  • 2
LVL 57

Assisted Solution

by:Jim Dettman (Microsoft MVP/ EE MVE)
Jim Dettman (Microsoft MVP/ EE MVE) earned 200 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 84

Accepted Solution

Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 300 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 57
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.


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.
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

LVL 84
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 84
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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

This article is a continuation or rather an extension from Cascading Combos ( and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
In the article entitled Working with Objects – Part 1 (, you learned the basics of working with objects, properties, methods, and events. In Work…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

863 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

20 Experts available now in Live!

Get 1:1 Help Now