external images linkes to records

I

Imda14u

Hi all,

Can any one please point me to how to load pictures on a form, when the
picture is not an ole-object in the table, but rather an address.

any help is greatly appreciated,

Sybolt
 
L

Larry Linson

Imda14u said:
Can any one please point me to how to
load pictures on a form, when the
picture is not an ole-object in the table,
but rather an address.

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.

And, Stephen has an ActiveX control available that works in cases where the
graphics filters are not available -- and works better, I've heard, than the
OLE Object and OLE Controls.

Please note that there are other approaches, e.g.,
Application.FollowHyperlink, but those, like OLE and Bound OLE Frames still
leave
you "at the mercy of the imaging software registered for the filetype".

Finally, Access 2007 has enhancements that, reputedly, eliminate the
database bloat long associated with OLE Objects and Bound OLE Frames. But,
it still leaves you relying on the software registered for the image type,
which may not be as "cooperative" as we'd like in creating our display. It
also has the capability of having a variable number of Attachments to a
Record, which may be helpful. But, be sure you have a copy incorporating,
at least, the first Service Pack, or have the SP in hand and ready to
apply as soon as you install Access 2007.

Larry Linson
Microsoft Office Access MVP
 
I

Imda14u

John Mishefske schreef:
Take a look at the imgForm.mdb download on my downloads web page:

http://tigeronomy.com/Downloads.aspx

Okay, I understand that the trick is tocreate a text field in the table
with the image filename (plus extension). In the form a picture is
added, but no picture included in the pictureframe.
On the current event you look for the location of the image using the
text field.
I knew i had to be something like this because i use a path to a graphic
file in a database at the ISP and call for the image in a webpage by
referring to the location. In a website i use Coldfusion to talk with
the database. To get the correct VBA code is something quite different.

Thanks again.
 

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