Results 1 to 4 of 4
  1. #1
    thegrimmerdiscovery is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2017
    Posts
    30

    Query output to Outlook Distribution list

    Hello people



    Is there a simple way of populating an Outlook email 'To' field from the series of email addresses produced by an Access query?

    If there is - how?

    Thanks

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    Simple answer is: Yes with VBA.

    Open a recordset object and loop through records and concatenate addresses.

    This is a common topic and there are many discussions and examples.
    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.

  3. #3
    Minty is online now VIP
    Windows 10 Access 2016
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,158
    Not really - you would need to loop through the query recordset results and build the to; string from the email addresses.
    There are loads of examples here this has one method https://www.accessforums.net/showthread.php?t=4287 and look at the bottom of that thread for other examples.

    If it's not internal I would recommend using the BCC: field instead of To: as it hides the addresses from the recipients.
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  4. #4
    thegrimmerdiscovery is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2017
    Posts
    30
    thanks for the responses people. I shall have a delve

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

Similar Threads

  1. Replies: 11
    Last Post: 04-19-2017, 10:28 AM
  2. Replies: 3
    Last Post: 09-18-2014, 07:13 AM
  3. Output query to list box
    By shabbaranks in forum Programming
    Replies: 4
    Last Post: 02-08-2012, 09:53 AM
  4. Ho do I output query to a list box
    By shabbaranks in forum Queries
    Replies: 1
    Last Post: 02-06-2012, 07:17 AM
  5. Report Distribution List
    By mvuhu_accessforum in forum Forms
    Replies: 1
    Last Post: 10-18-2010, 11:18 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