Results 1 to 3 of 3
  1. #1
    Shamli is offline Competent Performer
    Windows 7 64bit Access 2013 64bit
    Join Date
    Jul 2018
    Location
    California
    Posts
    142

    Access Auto email attach report as PDF

    Hello Everyone,
    I wanted to send an automatic email from access through outlook and also I wanted to attach the PDF version of the report.


    I am not sure where to start this.!
    Can anyone help me on this.

    Thanks!

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    In a macro or vb code:

    docmd.SendObject acSendReport ,"rMyReport",acFormatPDF,sTo,,,sSubj,sBody

  3. #3
    Shamli is offline Competent Performer
    Windows 7 64bit Access 2013 64bit
    Join Date
    Jul 2018
    Location
    California
    Posts
    142
    Perfect! It worked!
    Is there any way can I prevent the warning message to send the email!
    Automatically to be chosen as allow.


    Click image for larger version. 

Name:	Warning.PNG 
Views:	9 
Size:	22.0 KB 
ID:	37791


    Quote Originally Posted by ranman256 View Post
    In a macro or vb code:

    docmd.SendObject acSendReport ,"rMyReport",acFormatPDF,sTo,,,sSubj,sBody

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

Similar Threads

  1. Email from VBA fails to attach report
    By cebrower in forum Programming
    Replies: 5
    Last Post: 12-10-2018, 06:59 AM
  2. Replies: 1
    Last Post: 05-01-2014, 11:37 AM
  3. Attach Report to Email
    By teebumble in forum Reports
    Replies: 5
    Last Post: 11-28-2012, 05:42 PM
  4. Replies: 2
    Last Post: 12-28-2011, 09:32 PM
  5. Auto email a pdf report daily from ACCESS
    By wsm_al in forum Access
    Replies: 7
    Last Post: 10-20-2011, 09:35 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