Results 1 to 2 of 2
  1. #1
    yesnomaybewhat is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Mar 2019
    Posts
    1

    Submit record + send email at the same time

    Hi folks,



    What would be the best way to submit a record from a form to a table and, at the same time, have that record emailed out via a report?

    Thank you

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,644
    DoCmd.RunCommand acCmdSaveRecord
    DoCmd.OpenReport "report name", , , "ID=" & Me!ID
    DoCmd.SendObject acSendReport, "report name", , acFormatPDF, "email address here", , , , "subject text here", "message text here"
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 4
    Last Post: 07-12-2018, 05:38 AM
  2. Replies: 4
    Last Post: 06-26-2015, 10:31 AM
  3. New Record - send email HELP! :(
    By ThorstenG in forum Database Design
    Replies: 4
    Last Post: 04-14-2015, 08:38 AM
  4. Replies: 1
    Last Post: 09-07-2014, 10:15 PM
  5. Replies: 4
    Last Post: 09-07-2014, 11:41 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums