Results 1 to 7 of 7
  1. #1
    HelpMeWithAccess is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Posts
    6

    Question How to display attachment file name in a form?

    How to display attachment file name in a form? I have attachment field in my form and attached to 2 or more images. I put "Attachment.File Name" field under my attachment images. "Attachment.File Name" field displays the name of the first image of my attachment images like a "title". Whenever I click forward or backward arrow to see my attachment images, I want "Attachment.File Name" field also shows the correct name of the attachment image.



    Please help me anyone out there.

  2. #2
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383

  3. #3
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Doesn't the control bound to the attachment field display the name(s)?

    EDIT:
    Found this
    http://msdn.microsoft.com/en-us/libr...ffice.15).aspx

    I guess you could write some VBA to access the filename property of your Attachment Control

  4. #4
    HelpMeWithAccess is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Posts
    6
    For burrina,
    Thanks for the site, but not reach to my target yet!

    For ItsMe,
    Thanks for the site, but I don't understand how to use Events or Properties.
    Well, I am a starter and I need detail instruction.

    With Best Regards,
    me

  5. #5
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    I don't think you can do what you are trying to do on a form.

  6. #6
    HelpMeWithAccess is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Posts
    6
    Well, burrina,

    I've got the answer from other forum.

    - form be in Design View
    - put a text box that I want to show my attachment's name
    - put the value of "ControlSource" of that text box =[Attachment].[FileName]
    - click Attachment,
    - choose Event tab in Properties sheet,
    - to put the value of "On Attachment Current", click dotted box and VBA will occur
    - write Me.Recalc
    - save it, close it, press F5
    - done! we can test it. . .

    Enjoy your form,
    me

  7. #7
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    Good for you. Newly thing learned for me.

    Thanks,

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

Similar Threads

  1. PDF File content display on Access 2013 form
    By saleemsadique in forum Access
    Replies: 7
    Last Post: 02-07-2014, 06:36 PM
  2. Replies: 3
    Last Post: 11-15-2013, 10:07 AM
  3. Web Database - file attachment
    By msaccess in forum Access
    Replies: 1
    Last Post: 10-01-2013, 12:36 PM
  4. Display pdf attachment in report
    By BrianPeerless in forum Reports
    Replies: 5
    Last Post: 05-05-2011, 12:18 PM
  5. How would you output an XML file with an Ole Attachment?
    By techneophyte in forum Programming
    Replies: 7
    Last Post: 09-09-2010, 09:09 AM

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