<form id="hbx9t"></form>

<noframes id="hbx9t">

    <em id="hbx9t"><span id="hbx9t"></span></em>

        <noframes id="hbx9t"><address id="hbx9t"><th id="hbx9t"><progress id="hbx9t"></progress></th></address>
        office交流網--QQ交流群號

        Access培訓群:792054000         Excel免費交流群群:686050929          Outlook交流群:221378704    

        Word交流群:218156588             PPT交流群:324131555

        Access簡單調用Outlook發送郵件

        2020-10-13 08:00:00
        tmtony8
        原創
        5804

        access是office的一個組件,想必安裝過access的都會知道。因為可以通過安裝office時選擇access組件。

        成為office組件,天生就有它的優勢,它的兄弟的功能都能快速簡單調用,比如Excel ,Word等很容易交互操作。

        這里簡單描述一下調用outlook發送郵件:

        如圖,添加郵件正文內容,點擊發送郵件,即可在outlook中生成發送對話框內容。


        代碼比較簡單,只有一句話:

            DoCmd.SendObject acSendReport, "員工工資", acFormatPDF, "1918333016@qq.com", , , "員工工資明細,請查閱!", 正文
        




        SendObject對象介紹:

        使用 SendObject 操作,可以將指定的  Access 數據表、窗體 、報表 或模塊 包括在電子郵件中,然后可以在電子郵件中查看并進行轉發。在 Microsoft Outlook、Microsoft Exchange 或其他使用郵件應用程序編程接口 (MAPI) 的電子郵件應用程序中,可以在郵件中包括格式為 Microsoft Excel 2000 (*.xls)、MS-DOS 文本 (*.txt)、RTF (*.rtf) 或 HTML (*.html) 的對象。


        表達式.SendObject(ObjectType, ObjectName, OutputFormat, To, Cc, Bcc, Subject, MessageText, EditMessage, TemplateFile)

          分享