Solved

Insert a picture in a form

Posted on 2011-09-14
8
252 Views
Last Modified: 2013-11-28
Hi,

I have a table with +/- 2000 products. I have also in a seperate folder a picture of all these products. In a form with a subform i have several filters to detect one or more product.
Hereafter i can select one product to update in a new form. I would like to have the picture in this form. How do i do that?

Tx
0
Comment
Question by:sonmic
8 Comments
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
Comment Utility
This was cross posted in an Oracle Zone.  Is it Oracle related?
0
 
LVL 75

Expert Comment

by:DatabaseMX (Joe Anderson - Access MVP)
Comment Utility


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
 

Author Comment

by:sonmic
Comment Utility
Sorry, I made a mistake. It is MS Access related.

Can i manage pictures in access without an external application?
0
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.

 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Access MVP) earned 500 total points
Comment Utility
You can look at these free apps:


http://www.lebans.com/loadjpeggif.htm

And more image related apps on this page:

http://www.lebans.com/Form.htm

mx
0
 
LVL 75

Expert Comment

by:DatabaseMX (Joe Anderson - Access MVP)
Comment Utility
There are also examples here (as well as other excellent techniques/examples)

http://www.databasedevelopment.co.uk/examples.htm

Scroll down to

Storing Picture data (Download PictureData.zip)
An example of loading and storing image data using Access internal PictureData format. Another way to avoid bloat and allow east image re-use.

mx

0
 
LVL 1

Expert Comment

by:smartcheater
Comment Utility
In access form Goto to the "Code Builder"
Draw a picture box on form supposing the name picture1
and select the event of form "Current" event. This event occur every time when move from current record (previous or next).

use that code for picture loading:
picture1.picture=LoadPicture("Picture Path Here")

' For example 

picture1.picture=LoadPicture("c:\windows\webs\wallpaper.azul.jpg")

Open in new window


0
 

Author Closing Comment

by:sonmic
Comment Utility
It has given me an idee.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

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…
Today's users almost expect this to happen in all search boxes. After all, if their favourite search engine juggles with tens of thousand keywords while they type, and suggests matching phrases on the fly, why shouldn't they expect the same from you…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

743 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

13 Experts available now in Live!

Get 1:1 Help Now