Results 1 to 8 of 8
  1. #1
    annaazzam is offline Novice
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    1

    How to add pictures so that they shown in reports?


    I have a database with a table, and each record has an image as an OLE object
    these pictures show when i make a form....... but not when i make a report
    how can i make the pictures show in the report?? please help! thanks in advance

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    I've never had success with the OLEObject field type nor the OLEObject controls. I put image in attachment field or the image path in a text field then use Image control on form and report for dynamic display of images.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    MillerRL143 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Aug 2013
    Location
    Western PA
    Posts
    3
    I was able to do the same thing only I actually placed a bitmapped image into my "picture" field. Worked just fine.

  4. #4
    weymes is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Aug 2013
    Posts
    5

    Image control on report

    Quote Originally Posted by June7 View Post
    I've never had success with the OLEObject field type nor the OLEObject controls. I put image in attachment field or the image path in a text field then use Image control on form and report for dynamic display of images.
    I am new to access and have tried this method but i get the same image repeating ... See below for example

    Category Table

    CatID...... CatDes............... CatPic(text)
    CatA ...... Description of A... \\Server\...\cata.jpg
    CatB ...... Description of B... \\Server\...\catb.jpg
    CatC ...... Description of C... \\Server\...\catc.jpg


    Inventory Table

    PartNub...... PartDes.................. CatID... Size1..... Size2
    A1-02-02.... Description of A-1.... CatA.... 1/8........ 1/8
    A1-02-04.... Description of A-1.... CatA.... 1/8........ 1/4
    A2-04-04.... Description of A-2.... CatA.... 1/4........ 1/4
    A2-04-06.... Description of A-2.... CatA.... 1/4........ 3/8
    B1-02-02.... Description of B-1.... CatB.... 1/8........ 1/8
    B1-02-04.... Description of B-1.... CatB.... 1/8........ 1/4
    B2-04-04.... Description of B-2.... CatB.... 1/4........ 1/4
    B2-04-06.... Description of B-2.... CatB.... 1/4........ 3/8
    C1-02-02.... Description of C-1.... CatC.... 1/8........ 1/8
    C1-02-04.... Description of C-1.... CatC.... 1/8........ 1/4
    C2-04-04.... Description of C-2.... CatC.... 1/4........ 1/4
    C2-04-06.... Description of C-2.... CatC.... 1/4........ 3/8

    Report Is Set Out As Follows

    Page Header
    Generic Details (Title ECT)

    CatID Group Heder
    CatID.... CatDes.... CatPic(hiden)
    Controlled Image box (called CatImg)

    Detail
    PartNub.... PartDes.... Size1.... Size2

    No Footers


    VB Report Script
    CatImg.Picture = CatPic

    What Am I doing Wrong?

    There are some Categories that do not have Images but a there is a path created and some do not have a path

    Thanks in advance, any help is appreciated

  5. #5
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    No need for VBA code. Assuming form or report has the CatPic field in its RecordSource, bind Image control to the field by setting ControlSource property.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  6. #6
    weymes is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Aug 2013
    Posts
    5

    thank but not sure what you mean

    Quote Originally Posted by June7 View Post
    No need for VBA code. Assuming form or report has the CatPic field in its RecordSource, bind Image control to the field by setting ControlSource property.
    June7 Thanks for the quick reply.

    I am not sure what you mean by "bind Image control to the field by setting ControlSource property"

    Sorry I am a complete NOOB to all programing... this just fell in my lap at work and this looked like a better option than excel

    Thanks again

  7. #7
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    No programming required.

    Bind form or report to the table. Create an Image control on form or report by dragging control from the ribbon design tab. Set the ControlSource property of the Image control just as you would any data control.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  8. #8
    weymes is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Aug 2013
    Posts
    5
    Quote Originally Posted by June7 View Post
    No programming required.

    Bind form or report to the table. Create an Image control on form or report by dragging control from the ribbon design tab. Set the ControlSource property of the Image control just as you would any data control.
    FANTASTIC!!! Thank you so much for the help

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Data entered into form is not shown in Table
    By engr_saud1 in forum Forms
    Replies: 5
    Last Post: 04-07-2013, 06:34 AM
  2. Warehouse bin location not shown
    By BamaBBQ1 in forum Queries
    Replies: 3
    Last Post: 03-22-2013, 06:46 PM
  3. Filter items shown in Combo Box in sub-form
    By mikeha_99 in forum Access
    Replies: 2
    Last Post: 06-14-2011, 12:54 PM
  4. Simple calculations to be shown in reports
    By Newaccessuser in forum Access
    Replies: 8
    Last Post: 03-03-2011, 06:58 AM
  5. Replies: 4
    Last Post: 01-04-2011, 06:30 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums