Solved

Microsot Access 2010 show imge in form

Posted on 2016-09-21
3
18 Views
Last Modified: 2016-10-10
Can anyone help me out I doing a Stationery database with photos are save in a folder on the C:\ drive.  what I am trying to do when someone pick item number red pen item number is 63987 then the photo will show up in the object frame, the photos are save as the item number as a bmp. can any one help
0
Comment
Question by:Darren Hughes
  • 2
3 Comments
 
LVL 18

Accepted Solution

by:
crystal (strive4peace) - Microsoft MVP, Access earned 250 total points (awarded by participants)
Comment Utility
use an Image control. Access Image Control
Store filename in Access and set ControlSource of the Image to:
="C:\path\" & [ImgFilename]

WHERE
"C:\path\" is the path to the files
ImgFilename is a field in the table with the name of the file, including file extension

 -- alternately, you can construct the filename from your item#
       ="C:\path\" & [ItemNumber_Fieldname] & ".bmp"

Open in new window

1
 
LVL 19

Assisted Solution

by:Eric Sherman
Eric Sherman earned 250 total points (awarded by participants)
Comment Utility
Also, where do they pick the Item Number from ... is this a listbox or combobox, etc.???

Then you would use the AfterUpdate Event of your control to change the path to your image in the Image Control on your Form Object.

ET
0
 
LVL 18
Comment Utility
it is 2 weeks without a response from the poster. An answer was given.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

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

10 Experts available now in Live!

Get 1:1 Help Now