Question : Problems Showing a JPG

Ok, I have a form that needs to display an image.  So far, it does, if the image is a BMP, but I'd like to use JPGs as well.  I'm using an image control, and setting it's "Picture" property to the directory/filename of the picture to display, but when I try it with a JPG I get an error saying that either access doesn't support it, or it's too big.  I'm guessing, since the exact same image in BMP format (which is about 17 times the file size) works fine it's not a size issue.  That means that the OLE object doesn't support JPGs.

Now, I'm pretty sure there's something in Access I can do to tell it to support them, but I was hoping someone could tell me where it is.  Any takers?

Answer : Problems Showing a JPG

Hi Sam.

In the procedure mUnpaccPics modify the line strHtmlTable = strHtmlTable ..... with the following.
Will cause pics to be launched in new iexplore window.

Didnt cater for bitmaps, did you change the  import filter?





          strHtmlTable = strHtmlTable _
                         & "        " _
                         & "                         & " SRC='" & gsTempFolder & objRs.Fields(1).Value & "'" _
                         & " ALT='" & objRs.Fields("Filename").Value & Chr(10) & Chr(13) _
                         & "Bytes: " & objRs.Fields("Size").Value & Chr(10) & Chr(13) _
                         & "Created: " & objRs.Fields("Created").Value & "'" _
                         & ">


" & vbCrLf


Alan
Random Solutions  
 
programming4us programming4us