Solved

Displaying a picture on a form in Access

Posted on 2013-06-14
6
293 Views
Last Modified: 2013-07-02
So on my form, frm-member, I have a box that was asked to be added so it can display the persons photo when their record is brought up.

I have not created a table yet to hold the pictures for a few reasons.
1) I don't know what is the best practice for storing photos in a database
URL or in the table itself?  If a URL how do I do that and if in the table how do I do that?

2) I don't know how to have the picture display on the form when the persons record is brought up.

Any thoughts?

John
0
Comment
Question by:John Sheehy
6 Comments
 
LVL 75
ID: 39249133
You might want to consider this or at least be aware of if you are dealing with images in an Access database ... and I can totally vouch for this program.  
http://www.ammara.com/dbpix/access.html

It does *all* the work for you. Examples show how to add a simple 'control' panel to Load, Save, Zoom In/Out, Size To Fit and much more.  AND ... virtually eliminates BLOAT associated with storing images in an Access MDB. I have 3 clients who sell commercial run-time products that use DBPix.

Note. I have no connection with DBPix ... except I have used it many times ...

mx
0
 
LVL 31

Expert Comment

by:Helen_Feddema
ID: 39249263
This depends on the Access version, if you want to actually store the images in a table.  What version are you using?  For more recent versions, is it a desktop database (2013 terminology), a Web app, or a 2010 hybrid app?
0
 

Author Comment

by:John Sheehy
ID: 39249282
It is a 2010 ACCDB with a front end and a back end.
0
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
LVL 40

Accepted Solution

by:
als315 earned 500 total points
ID: 39249790
Take a look at my article: Images on continuous forms
0
 
LVL 84
ID: 39249792
Most developers store the photos in a specific folder, and then store the path to that photo in their database table. You can then use this code in the Form's Current event to show them in your Image control:

Me.YourImageControl.Picture = Me.YourFieldThatSToiresThePath
0
 

Author Closing Comment

by:John Sheehy
ID: 39293608
I know I am late in responding but this answer was perfect for my use.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

861 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