"JohnB" wrote
I find that I add around 2mb
for each thumbnail.
IIRC, my "rule of thumb" was "approximately 1 MB of thumbnail for each 25K
of original compressed JPG".
The external file approach works nicely, but does leave your images
"exposed" in files on the hard drive; the "BLOB" approach makes for a
somewhat larger database, but doesn't expose your image files to "external
influences". It is surprising, sometimes, that users may go in and delete a
lot of files because they don't know what they are!
These two methods do not work with a Continuous Forms view, but only in a
Single Record view. If you use the Zoom property on the Image Control, the
image will be resized to fit the control, maintaining the aspect ratio. If
you like, you could include a command button, or just a double click event,
to open a separate form with a larger Image Control. (That form doesn't even
have to be bound to the table -- you can pass it the path and filename in
the OpenArgs event.)
I don't think I've ever done a real-life Access application where it was
useful for the users to have a page of thumbnails from which they chose one
to enlarge, so this has never been a problem for me.
One caveat: to display the compressed files, you need to have the graphics
filters installed. They are included with Microsoft Office Professional, or
standalone Microsoft Word, but not with standalone Access. AND we are NOT
licensed to redistribute them with a database with runtime support.
Thus, these approaches are not "for everyone" but if you are creating an
application for your own use, or for distribution to users who all have
Office Pro installed, or even just Microsoft Word installed, they are very
useful.
There are various third-party controls that can be licensed for use in those
other cases -- from the free one at Stephen Lebans' site,
http://www.lebans.com, to some very, very expensive ones available from
vendors (as I don't particularly recommend the very, very expensive ones, I
won't name them). Pegasus Software used to have a moderately inexpensive
control called ImageN that got good reports from people who tried it (but I
haven't used it myself), and think it may have been superceded by another
product in their line.
Assuming your student form is in single record view, you can examine the
code in the OnCurrent event in the sample -- it is a simple matter of
setting the Picture property of your Image control. (Assuming you now use a
Bound Object Frame, you'll first replace it with an Image control.)
As far as I know, the demo code should run in Access 2000 on Windows XP. I
don't have a machine so configured, but I haven't heard any complaints that
it does not run. (Access 2000 is not one of my favorites, and the only copy
I have installed is on an old Windows 98 machine, which I don't use very
often.)
Larry Linson
Microsoft Access MVP