• Display .jpg files in Access 2007 reports and form

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Display .jpg files in Access 2007 reports and form

    Author
    Topic
    #462114

    I have create a OLE field in a table to store images and then use a bound object frame to display the picture in a report. Bitmap files (.bmp) work fine, but images in .jpg or .gif format display the file name, not the image in the report. What am I doing wrong?

    Larry

    Viewing 1 reply thread
    Author
    Replies
    • #1175130

      Try storing the images in an Attachment field instead of an OLE field.

    • #1175152

      How do you create an attachment field – it’s not one of the standard data types (text, memo, number, date/time, currency, autonumber, yes/no, OLE object, hyperlink) – or is it the hyperlink field pointing to the file?

      Thanks.

      Larry

      • #1175154

        I forgot to mention that you can only create an attachment field in a database in the new .accdb database format.

        In a database in .mdb format, you should *not* store images (unless they are small in number and size) – it leads to incredible bloating of the file size.
        You should store the path/filename in a text field instead, and use an unbound image control to display the images. See [post=”788517″]Post 788517[/post].

        • #1175164

          Thanks Hans (Duh!! I must have created the database in 2003 before the upgrade). Anyway, the attachement type works perfectly. Thank you – thank you – thank you – thank you – thank you – thank you – thank you – thank you – thank you – thank you – thank you – thank you – thank you – thank you – thank you – thank you – thank you – thank you – thank you – thank you – thank you – thank you – thank you – thank you – thank you – thank you – thank you!

          Larry

          I forgot to mention that you can only create an attachment field in a database in the new .accdb database format.

          In a database in .mdb format, you should *not* store images (unless they are small in number and size) – it leads to incredible bloating of the file size.
          You should store the path/filename in a text field instead, and use an unbound image control to display the images. See [post=”788517″]Post 788517[/post].

    Viewing 1 reply thread
    Reply To: Display .jpg files in Access 2007 reports and form

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: