Results 1 to 5 of 5
  1. #1
    Josha is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2019
    Location
    Victoria, Australia
    Posts
    42

    Show images on report?

    Hi, I am creating a db for work. I have a simple form with some info on it and then a photo. This photo is not embedded into the database it's linked. In the table for this database I have field called "Picture_source" which stores the file path of the image. HOwever, when I create the report it gives everything I need except the photo.... It just gives me the filepath of the photo not the image itself? Is there a way to show the linked file on a report?? Thank you

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,521
    In the on print event,
    imgBox.picture=txtPath
    Last edited by ranman256; 05-19-2020 at 10:53 AM.

  3. #3
    Josha is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2019
    Location
    Victoria, Australia
    Posts
    42
    Hi ranman256, sorry for the late reply.... Where do I put that "imgbox.picture=txtpath" I can't find on print event

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,815
    OnPrint and OnFormat events only trigger for PrintPreview or direct to printer.

    Use an Image control and set its ControlSource to that field then no code required and image will display in Report view or Print.
    Last edited by June7; 06-02-2020 at 03:48 AM.
    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.

  5. #5
    Josha is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2019
    Location
    Victoria, Australia
    Posts
    42
    That worked! Thank you ! So easy

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

Similar Threads

  1. Replies: 7
    Last Post: 03-22-2020, 02:05 PM
  2. Replies: 1
    Last Post: 12-17-2012, 08:29 PM
  3. Replies: 3
    Last Post: 10-15-2012, 01:18 PM
  4. Access 2010, show images on form
    By s_hannah in forum Forms
    Replies: 2
    Last Post: 03-26-2012, 10:50 AM
  5. Replies: 17
    Last Post: 08-26-2009, 11:27 AM

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