Results 1 to 2 of 2
  1. #1
    NoGoodAtCode is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Sep 2014
    Posts
    1

    Add record and send email on same click of button in form in Access

    1. Version of the program:
    Access 2010

    2. What I want it to do:
    On the single click of a button in a form, I would like it to add the new record and send the record in an email to adynamic email address taken from an input in the form.

    3. The Data:


    The table the form is built from is:
    Assignment

    The field names are:
    User IDFK (Email Address)
    Project IDFK
    Task IDFK
    Assignent Date (Not listed in the form)

    5. The Current Code:
    Private Sub CreateProjectButton_Click()
    DoCmd.GoToRecord
    End Sub

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Sending email is common topic in forum. Two methods:

    1. SendObject

    2. open an email object and manipulate

    Search on those keywords. Lots of examples. Here's one to get you started https://www.accessforums.net/program...ook-21903.html
    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: 5
    Last Post: 05-07-2014, 09:25 AM
  2. Command Button to Send Outlook Email
    By AJM229 in forum Forms
    Replies: 19
    Last Post: 05-07-2014, 09:05 AM
  3. Replies: 4
    Last Post: 04-24-2014, 01:54 PM
  4. Replies: 4
    Last Post: 02-05-2014, 04:05 PM
  5. Replies: 1
    Last Post: 02-14-2012, 07:08 PM

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