I have a database with student records
and I was wondering if there is a
SIMPLE way of adding a field which
contains a picture of every student.
I know it is possible via (to me) very
complex looking programming, but
I wonder if there is a simple(r) way.
Any help will be much appreciated.
Thanks in Advance,
Frankie.
Well, the simplest way may be to save the pictures in OLE Objects and
display them in OLE Frames, but that approach has some (significant)
drawbacks including database bloat and things not always working the way you
expect, depending on the software registered to the particular image file
format on the users machine. Take a look at the article included in the
download suggested in the next paragraph.
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.
There is some VBA code, but you can copy most of the pertinent code that you
need right from the examples.
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