Share via

Emailing Objects with Groupwise 2014

Anonymous
2015-06-05T17:25:32+00:00

I have Access 2010 and a report that I would like to email using Groupwise 2014.

i have tried using the EmailDatabaseObject macro.  Access will bring up a new email, but it will not attach the report in any format.

I have also tried using the following code, but it gives me a compile error... I'm not a VBA programmer so I am just using what I found on the MSDN webpage.  If I remove the ( ) it will run the report and bring up an email, but again.... no attachment.  I have PDFCreator as a printer, but it only creates the PDF, it doesn't give me the option to email it. 

Private Sub btnReportEmailPDF_Click()

DoCmd.SendObject(acSendReport, Report_RptTESTSendPDF, acSendPDF, , , , "Test File in PDF", "This is a PDF test", True, )

End Sub

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

2 answers

Sort by: Most helpful
  1. Tom van Stiphout 40,211 Reputation points MVP Volunteer Moderator
    2015-06-06T21:28:00+00:00

    I meant to add:

    objMessage.AddAttachment

    is used to add attachments.

    http://www.devhut.net/2014/06/10/how-to-send-multiple-attachments-within-a-single-e-mail-using-vba/ has some details.

    Was this answer helpful?

    0 comments No comments
  2. Tom van Stiphout 40,211 Reputation points MVP Volunteer Moderator
    2015-06-06T21:24:59+00:00

    This would work since it runs against the server directly, but I don't know if you can make it work using your VBA skills. Make sure you use the correct smtpserver, sendusername, sendpassword.

    http://p2p.wrox.com/access/35650-email-attachment-vba.html

    Was this answer helpful?

    0 comments No comments