Hi all, I’m trying to send out emails from access using the SendObject ject acReport, StDocName. This code brings up the email client . SendObject acReport, stDocName, acFormatPDF, _ stRecipients, stDocName = “License CODs” stRecipietns = stRecipients DoCmd. ject acSendReport, stDocName, acFormatPDF, “”,,, “Emailing” & ” ” & strFileName ‘Close the Report acReport.
|Published (Last):||25 March 2009|
|PDF File Size:||9.45 Mb|
|ePub File Size:||12.90 Mb|
|Price:||Free* [*Free Regsitration Required]|
SendObject report with a filter
Seems quite strange to me. Remarks You can use the SendObject action to include the specified Microsoft Access datasheet, form, report, or module in an electronic mail message, where it can be viewed and forwarded. This can also be accomplished within Access with the correct VBA construct s.
If you leave this argument blank, the Bcc line in the mail message is blank. Our new feedback system is built on GitHub Issues. Jul 4 The columns for these fields are included in the object, but the fields are blank. May 25 Please mark this question as answered by clicking on yes next to “Was this post helpful to you? Bcc Optional Variant A string expression that lists the recipients whose names you want to put on the Bcc line in the mail message. Originally Posted by ranman If you leave this argument blank, the default True is assumed.
Page 1 of 2 1 2 Last Jump to page: You can use the SendObject action to include the specified Acrepoft Access datasheet, form, report, or module in an electronic mail message, where it can be viewed and forwarded. I added acHidden to the open report so the users don’t see the report before it goes right into an email. Search this forum only?
Specify The Sender Of An Email Using ject – UtterAccess Forums
If you send a docmd.sendobjecg in Form view, the included object always contains the form’s Datasheet view. Maverick, Sep 4, If the recipient names aren’t recognized by the mail application, the message isn’t sent and an error occurs. No other control in a header or footer and no aggregate function other than Sum is included in the object.
It needs confirmation, of course!. Join Date Feb Posts Post as a guest Name. The following example docmd.sendkbject how to create an email message with Microsoft Outlook and display it to the user. So the message itself will start with Sent From whoever is logged on to the PC It may be possible to use acrrport using CDO but I seem to recall that the best you can do with that is to set up a ‘reply to’.
Pass an email address to the SendObject method in VBA – Stack Overflow
Originally Posted by RyanP. Jul 6 Results 1 to 15 of The other times it opens with the same filter setting as the last button press. If you leave both the ObjectType and ObjectName arguments blank the default constant, acSendNoObjectis assumed for the ObjectType argumentMicrosoft Access sends a message to the electronic mail application without an included database object.
If you leave this argument blank, the Cc line in the mail message is blank. In the included object, all fields in the datasheet look as they do in Access, except fields containing OLE objects.
I thought of putting each filter in a separate report, but I would prefer to avoid that since it would end up adding multiple ztdocname to my database that all do the same thing. You can include objects in Microsoft Excel Thread Tools Show Printable Version.