If you leave this argument blank, the default ( True) is assumed.Ī string expression that's the full name, including the path, of the file that you want to use as a template for an HTML file. Use False (0) to send the message without editing it. Use True (1) to open the electronic mail application immediately with the message loaded, so the message can be edited. If you leave this argument blank, the object is all that's included in the body of the mail message. If you leave this argument blank, the Subject line in the mail message is blank.Ī string expression containing the text that you want to include in the body of the mail message, after the object. If you leave this argument blank, the Bcc line in the mail message is blank.Ī string expression containing the text that you want to put on the Subject line in the mail message. If you leave this argument blank, the Cc line in the mail message is blank.Ī 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, Microsoft Access prompts you for the recipients.Ī string expression that lists the recipients whose names you want to put on the Cc line in the mail message. If the recipient names aren't recognized by the mail application, the message isn't sent and an error occurs. Separate the recipient names that 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 the Regional Settings Properties dialog box in the Windows Control Panel. Possible values include acFormatHTML, acFormatRTF, acFormatSNP, acFormatTXT, acFormatXLS, acFormatXLSB, acFormatXLSX, acFormatXPS, and acFormatPDF.Ī string expression that lists the recipients whose names you want to put on the To line in the mail message. If you run Visual Basic code containing the SendObject method in a library database, Access looks for the object with this name first in the library database, and then in the current database.Ī constant that specifies the format in which to send the object. If you leave both the ObjectType and ObjectName arguments blank (the default constant, acSendNoObject, is assumed for the ObjectType argument), Microsoft Access sends a message to the electronic mail application without an included database object. If you want to include the active object in the mail message, specify the object's type with the ObjectType argument and leave this argument blank. Parameters NameĪn AcSendObjectType constant that specifies the type of object to send.Ī string expression that's the valid name of an object of the type selected by the ObjectType argument. SendObject ( ObjectType, ObjectName, OutputFormat, To, Cc, Bcc, Subject, MessageText, EditMessage, TemplateFile)Įxpression A variable that represents a DoCmd object. The SendObject method carries out the SendObject action in Visual Basic.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |