Results 1 to 2 of 2
  1. #1
    cm-net is offline Novice
    Windows Vista Access 2007
    Join Date
    Apr 2010
    Posts
    7

    Send Object to addresses in table

    Hello,

    I'm trying to use the Send Object command in a macro to send order confirmation emails to my customers. The body of the email will be the same for all addresses but the subject should have the PO number of the respective customer and his address only. The table that has the email address and PO number would look something like this:

    Customer Name PO Number Email Address

    Bob 12345 bob@email.com
    Tim 12346 tim@email.com


    Lucy 12347 lucy@email.com

    Is there any way to get a single access macro to send 3 different emails using the same message body but with email subjects that look like this:

    Subject: Your PO 12345 has been received (to Bob)
    Subject: Your PO 12346 has been received (to Tim), etc.

    Thanks in advance for your time!

    c

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    This is a little overly complicated for my tastes, but it contains the basics for what you want:

    http://www.granite.ab.ca/access/email/recordsetloop.htm

    Check it out and post back if you get stuck.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Send Primary Key from a Form To A Report
    By nkuebelbeck in forum Forms
    Replies: 1
    Last Post: 03-18-2010, 12:24 PM
  2. Send parameters to queries
    By Merkava in forum Programming
    Replies: 8
    Last Post: 11-06-2009, 02:31 PM
  3. Exporting Outlook email addresses
    By noidea in forum Import/Export Data
    Replies: 0
    Last Post: 08-01-2009, 01:48 PM
  4. Replies: 0
    Last Post: 02-04-2009, 04:47 AM
  5. Combining two Email Addresses
    By Frodo in forum Access
    Replies: 0
    Last Post: 09-16-2007, 07:07 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