The SendObject action can attach a MS Access form, table, report or query in an electronic mail message.. acSendNoObject; acSendQuery; acSendReport; acSendTable ject acSendTable, “emp_mast”, acFormatXLS. There is no Where condition in the SendObject method. What you need to do, is put the use the criteria Forms!YourFormName!. SendObject to send emails stopped working since we upgraded our Outlook to ject acSendReport, “rptTest”, acFormatRTF.
|Published (Last):||4 May 2018|
|PDF File Size:||15.94 Mb|
|ePub File Size:||2.94 Mb|
|Price:||Free* [*Free Regsitration Required]|
AcSendObjectType – Can be one of these constants. Download Access example of the Sendobject Method If you want to include the active object in the E mail message, specify the object’s type with the objecttype argument and leave this argument blank.
ject method (Access) | Microsoft Docs
If you leave both the objecttype and objectname arguments blank the default constant, acSendNoObject, is assumed for the objecttype argumentMicrosoft Access sends a message to acsenderport E mail application without an included database object. If you run Visual Basic code containing the SendObject method in a library database, Microsoft Access looks for the object with this name first in the library database, then in the current database.
OutputFormat – Optional Variant. To – An optional string expression that lists the recipients whose names you want to put on the To line in the E- mail message.
Separate the recipient names you specify in this argument and in the cc and bcc arguments with a semicolon ; or with the list separator set on the Number tab of docmdd.sendobject Regional Settings Properties dialog box in Windows Control Panel. If the recipient names aren’t recognized by the E mail application, the message isn’t sent and an error occurs.
If you leave this argument blank, Microsoft Access prompts you for the recipients. Cc – An optional string expression that lists the recipients whose names you want to put on the Cc line in the mail message.
Access & Email – Codekabinett
If you leave this argument blank, the Cc line in the mail message is blank. Bcc – An optional string expression that lists the recipients whose names you want to put on the Bcc line in the mail message. If you leave this argument blank, the Bcc line in the mail message is blank. Subject – An optional string expression containing the text you want to put on the Subject line in the mail message. If you leave this argument blank, the Subject line in the mail message is blank.
DoCmd.SendObject method (Access)
MessageText – An optional string expression containing the text you want to include in the body of the mail message, after the object. If you leave this argument blank, the object is all that’s included in the body of the mail message.
Use False 0 to send the message without editing it. If you leave this argument blank, the default True is assumed. TemplateFile – Optional string expression that’s the full name, including the path, of the file you want to use as a template for an HTML file.
SendObject Method Example You can use the SendObject action to include the specified Microsoft Access datasheet, form, report, module, or data access page in an electronic mail message, where it can be viewed and forwarded.
Download Access example of the Sendobject Method.
SendObject Visual Basic command. We’ve added a little trick to the send acsenddreport command in that we use the NoObject option to not really send anything to