Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Setting a group email in Access based on a flag in employee table

Posted on 2013-01-29
3
Medium Priority
?
187 Views
Last Modified: 2013-01-29
I have a table of employees in Access 2010.  I have a "yes/no" field in the table on a column called SendEmail.  I would like to create a VBA script that when executed will populate the employees email addresses of all the "yes" employees from the table into the Outlook "To" field.  Once the email is open, with the email addresses in the TO field, I would type the message I would like to send.  

Is there a script out there that will do this?
0
Comment
Question by:marku24
3 Comments
 
LVL 40

Accepted Solution

by:
als315 earned 1200 total points
ID: 38832183
Look at sample
DBmail.accdb
0
 

Author Closing Comment

by:marku24
ID: 38832302
great answer - easy and exactly what i was looking for
0
 
LVL 49

Expert Comment

by:Dale Fye
ID: 38832428
Alexey,

Slow down!  You are kicking my butt today.  ;-)
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

877 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question