Results 1 to 2 of 2
  1. #1
    Grant Shea is offline Advanced Beginner
    Windows 10 Access 2010 32bit
    Join Date
    Feb 2015
    Posts
    30

    Save attachment from a report


    I have a field in my database that is for attachments. What i would like to happen is when i generate a report, IF there is an attachment in that report it will prompt the user "This report has an attachment" and after clicking ok, open that attachment automatically. Can someone help me with VBA code for this?

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    I think you are going to have to export the file from the DB using VBA and then something like a followhyperlink. Another approach might be to set focus on an Attachment control and use SendKeys.

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

Similar Threads

  1. Replies: 3
    Last Post: 06-18-2016, 09:06 AM
  2. Excel attachment and save as draft in outlook
    By ragsgold in forum Programming
    Replies: 1
    Last Post: 02-01-2013, 05:55 PM
  3. Replies: 6
    Last Post: 12-12-2011, 09:57 PM
  4. Save Report in Attachment
    By A S MANN in forum Queries
    Replies: 1
    Last Post: 10-08-2010, 08:33 PM
  5. How do you file save an 'Attachment' content through code?
    By morespamforya in forum Programming
    Replies: 3
    Last Post: 08-06-2010, 08:58 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