Re: Display stored JPGs on a form
- From: "Bill" <billstanton@xxxxxxxx>
- Date: Mon, 21 Jan 2008 22:20:09 -0800
In all of what you've described, it isn't quite clear
exactly what you're trying to accomplish. But first,
I might suggest that you avoid storing images into
Access databases. Rather, establish an image
library, preferrably jpg images, and then link to
the image as driven by the database. You can do
this by creating an image control with its "Picture"
source left blank and then let the "Sections" OnFormat
Event set the link to the desired image.
Something like:
Me.MyImageControl.Picture = Me.[MyDBField]
Where: MyDBField is a fully qualified path to the desired
image. (Not the best idea to store fully qualified paths
as a database field, as it doesn't provide the flexibility
to move your image library around.)
Alternatively:
Dim strImagePath as String 'Of the form: "c:\MyAppl\"
Dim strImageLib as String 'Of the form: "MyImageLib\"
Me.MyImageControl.Picture = strImagePath & strImageLib & MyDBField & ".jpg"
Post back if this suggestion doesn't match what you're
trying to accomplish.
Bill
"Dave" <davefrick@xxxxxxxxxxxxxxxx> wrote in message
news:%23$bA4fKXIHA.484@xxxxxxxxxxxxxxxxxxxxxxx
I have a table with an OLE Object data type field in which I insert a
number of JPG files by simply copying the file and pasting it into the
table.
I create a form with a Bound Object Frame control that has as its control
source the OLE Object type field.
In Windows Explorer under Tools | Folder Options | File Types, I select
the JPG file type and change it from Internet Exploer to MS Office Picture
Manager or Windows Picture and Fax Viewer.
After this all that appears on my form is the control with the image name,
no image itself. When I click on this control, Picture Manager launches
and displays the image just as Internet Explorer used to do before I
registered the JPG file type with Picture Manager.
But I want the image to display _in the form_.
I even tried creating an AutoForm referencing the image table as someone
in a different thread suggested. This produces the same result as above,
no image, just a linked file name in the control.
Has anyone else done this?
.
- Follow-Ups:
- Re: Display stored JPGs on a form
- From: Dave
- Re: Display stored JPGs on a form
- References:
- Display stored JPGs on a form
- From: Dave
- Display stored JPGs on a form
- Prev by Date: Display stored JPGs on a form
- Next by Date: Re: Error accessing control when form not open
- Previous by thread: Display stored JPGs on a form
- Next by thread: Re: Display stored JPGs on a form
- Index(es):
Relevant Pages
|