Inserting Photo

G

Guest

I am trying to insert a photo in my form of all of my members. When I setup a
field in my table for a photo I setup the Data Type as a OLE Object. I then
proceed to insert an .bmp object into the field and when it get placed in
there it is placed as a Package and not as a image. If I double click on that
file the picture comes up in a viewer. The problem occurs when i go to the
form it appears as a thunmbnail and not as a picture. The Control Source in
my form is set at Photo. As a matter of fact i can do this on any existing
database (i.e. Northwind) and when I replace one of its pictures with one of
mine it does the same thing.

Also if I try to insert a .jpg object in the field and I go to the form just
the name of the picture shows up in the photo area.

Any help would be greatly appreciated.
 
L

Larry Linson

Steve Cook said:
I am trying to insert a photo in my form of all of my members. When I setup
a
field in my table for a photo I setup the Data Type as a OLE Object. I
then
proceed to insert an .bmp object into the field and when it get placed in
there it is placed as a Package and not as a image. If I double click on
that
file the picture comes up in a viewer. The problem occurs when i go to the
form it appears as a thunmbnail and not as a picture. The Control Source
in
my form is set at Photo. As a matter of fact i can do this on any existing
database (i.e. Northwind) and when I replace one of its pictures with one
of
mine it does the same thing.

Also if I try to insert a .jpg object in the field and I go to the form
just
the name of the picture shows up in the photo area.

The sample imaging databases at http://accdevel.tripod.com illustrate three
approaches to handling images in Access, and the download includes an
article discussing considerations in choosing an approach. Two of the
approaches do not use OLE Objects and, thus, avoid the database bloat, and
some other problems, associated with images in OLE Objects.

If you are printing the images in reports, to avoid memory leakage, you
should also see MVP Stephen Lebans' http://www.lebans.com/printfailures.htm.
PrintFailure.zip is an Access97 MDB containing a report that fails during
the Access formatting process prior to being spooled to the Printer Driver.
This MDB also contains code showing how to convert the contents of the Image
control to a Bitmap file prior to printing. This helps alleviate the "Out of
Memory" error that can popup when printing image intensive reports.

Larry Linson
Microsoft Access MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top