Re: JPG files in forms

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Your suggestion looks like the way to go. You didn't provide enough detail
to completely solve my problem. However, you pointed me in the right
direction. I found the article from Microsoft "How to display an image from
a folder in a form or in a report in Access 2000" (originally published in
the KnowledgeBase as Q210100). It supplied the added detail I needed.

Now, I can display pictures in my report.

The remaining problem is one of speed. I normally photograph images using
the camera's highest resolution. As a result, my JPG files are large -- 3 -
6 MB. These large files take a long time to load into the database. I don't
need such large files to provide the thumbnail images the report displays.
I'm looking for a way to automatically create reduced resolution JPG files
the database can use. In PhotoShop and various other graphics applications I
can open individual high-resolution JPG files and save each one at a
much-reduced resolution. That works okay, but it requires manual work on
each file.

Can anyone suggest a method I can use to automatically create a small-size,
low resolution version of each original JPG file?

Gordon

"Damon Heron" <damon327@xxxxxxxxxxx> wrote in message
news:Z7udnduNTYE-B7jZnZ2dnUVZ_v-dnZ2d@xxxxxxxxxxxxxx
You should leave the images on your hard drive and use the following
routine
to get them:

Dim filename As String, pathname As String
Private Sub Form_Activate()
'find the path of the current database which is where the jpegs are
stored
pathname = CurrentProject.Path
End Sub

Private Sub Form_Current()
'set the picture path where ImageName is the name of the image control you
put on the 'form....
Me.ImageName.Picture = pathname & "\" & Me.txtNameof Image ' like
"mypic.jpg"
'have the image names in a table that is tied to the form. the control
source of 'txtNameofImage would be the field of the table with the
imagenames

'some error chkg....
End Sub


--
Damon Heron
"Gordon Padwick" <gpadwick@xxxxxxxxxxxxx> wrote in message
news:R%2Vf.4900$HW2.2277@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I've having trouble displaying JPG images in forms and reports
I'm trying to create a database that contains images from my Canon
Digital
Rebel camera together with information about those images. I've
downloaded
images from the camera as JPG files on my computer (Windows 2000).
When I try to bring the JPG images into access, all I see is a window
that
shows the image file name.
Can anyone provide, or direct me to information about, how I can display
JPG
images in Access 2000 forms and reports?

Gordon







.



Relevant Pages

  • Re: DIY machine jack
    ... I have High def screens - That High resolution movies are shown as 1080 res. ... My camera shoots and I use 3MB JPG files 3456 x 2592 as an example. ... And for broadband to take time - there is another issue. ... And even I on broadband don't want to wait for the images to load. ...
    (sci.engr.joining.welding)
  • Re: DIY machine jack
    ... I have High def screens - That High resolution movies are shown as 1080 res. ... My camera shoots and I use 3MB JPG files 3456 x 2592 as an example. ... And even I on broadband don't want to wait for the images to load. ...
    (sci.engr.joining.welding)
  • Re: Can I use Access (2007) for sorting scanned documents?
    ... documents in the database, then click on a hyperlink and open them. ... JPG is a good storage medium for photographs and images. ... jpg files do not contain text, are not searchable, are not ...
    (microsoft.public.access.gettingstarted)
  • Re: How long does it take a JPG to deteriorate?
    ... jpg files simply do not ... aware of the corruption, which we've suffered from for far longer ... as soon as possible to prevent them from degrading in the camera. ... The instructor is talking about FILM images. ...
    (rec.photo.digital)
  • Re: Form Extremely slow moving to next record...
    ... it is best to save your images as JPG files and then use a 255 char text field in your table to store the path and name of the JPG file ... Do I need to use a different type of control or maybe a different screen capture at a lower resolution, or a different graphic type, or ??? ...
    (microsoft.public.access.forms)