Results 1 to 2 of 2
  1. #1
    KristianFriis is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2015
    Posts
    1

    Button for sending a specific row of information to a specific email adress

    Hi,

    I am trying to figure out how to make a button that sends an email to a specific email address, containing the information from 1 row.

    the idea is this:


    we have rows where we put the the address, the quantity and the time interval we can collect the packages in. these information have to be send to a trucking company.
    I want access to send an email to the trucking company's email address, and not a whole report of all the rows, but be able to choose to send row 1,2,3 etc.

    is this possible?

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    on my form, I have a list box (or combo) of email addresses to pick,
    user selects a record in the form ,
    now you have the record ID, txtID box and the email, cboEmail
    you have a query that reads the txtID to pull the 1 record, "qs1Rec", this query reads the txtID on the form as parameter
    now send it with the button click:

    Code:
    sub btnSend_click()
       DoCmd.SendObject acSendQuery, "qs1Rec", acFormatXLS, cboEmail, , , "Subject", "message"
    end sub

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

Similar Threads

  1. Replies: 4
    Last Post: 08-12-2015, 12:52 PM
  2. Docmd.sendObject Sending email to specific folder
    By JeroenMioch in forum Access
    Replies: 29
    Last Post: 07-31-2015, 11:39 AM
  3. Replies: 37
    Last Post: 02-25-2015, 05:25 PM
  4. sending specific details to pdf and email
    By blappy347 in forum Import/Export Data
    Replies: 1
    Last Post: 03-29-2013, 12:46 PM
  5. Replies: 1
    Last Post: 04-06-2009, 07:25 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