Results 1 to 5 of 5
  1. #1
    ZachAtaiyan is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    41

    Display image from attachment field


    Re: https://www.accessforums.net/reports...eld-30861.html

    Would there be an expression that can be added to the attachment field that would require it to display the 2nd attachment instead of the first?

  2. #2
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    Why not simply use the attachment arrows?

  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,598
    Certainly can't put expression in attachment field. Can't selectively display specific item of attachment field. Would probably have to extract the image to external location and then reference that image filepath\name in ControlSource.

    If you want to display a specific single image, then should be only one image in field and either multiple fields or multiple records for images. Or store images external from db.
    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.

  4. #4
    ZachAtaiyan is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    41
    Quote Originally Posted by June7 View Post
    Certainly can't put expression in attachment field. Can't selectively display specific item of attachment field. Would probably have to extract the image to external location and then reference that image filepath\name in ControlSource.

    If you want to display a specific single image, then should be only one image in field and either multiple fields or multiple records for images. Or store images external from db.
    So simply put, what I would like to do (have three of, say AttachmentField1, shown on a report displaying 3 different pictures attached within that field) cannot be done?

    @burrina: I would but we will have around 1000 records when this is all said and done. I would prefer to avoid having to go through the pop-up arrows for each record on the report and select the one I want displayed.

    Sorry if I seem dull, but is there ANY way that this can be done? Even any cutting edge ideas?

    Thanks!

  5. #5
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    I have seen VBA code somewhere for the attachment "Control". I think I helped someone before with VBA to manage the properties/methods from behind a form. Not sure how this translates to a report rendering to Print Preview.

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

Similar Threads

  1. Replies: 5
    Last Post: 06-25-2014, 05:34 AM
  2. Form Attachment Default Image Cut Off
    By breakingme10 in forum Forms
    Replies: 2
    Last Post: 06-06-2014, 12:45 PM
  3. Replies: 5
    Last Post: 04-29-2013, 04:23 PM
  4. Replies: 16
    Last Post: 04-30-2012, 07:12 AM
  5. Replies: 0
    Last Post: 12-03-2010, 02:17 PM

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