Microsoft Access Email Automation

I have a Microsoft Access process serving database.  I want to have access send an automated e-mail when a record is approaching 30 days or less from the deadline.
Kenneth RungAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dale FyeOwner, Developing Solutions LLCCommented:
The simplest way is to use the SendObject method (docmd.sendObject).  This method will allow you to send a specific report, which is the way I would go, to any recipient by defining several parameters.

You might need to have a form to do this, which would allow you to display a recordset of records which meet your specific date criteria.  Then you would select a single record or loop through each of the records and implement the sendObject method for each item.  When I do this, I create a report that is based upon the form, so that the report only includes information for the currently selected record (you don't want to send all of the reports to each recipient), and uses the email address of the current record to do so.

The down side of this, is that the Outlook Security model will display a warning message for each email you attempt to send using the SendObject method, which can be annoying.  If you are doing lots of these, at a time, you might want to look into purchasing vbMAPI, which allows you to bypass the Outlook Security model and do large batches of these at once.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Dale FyeOwner, Developing Solutions LLCCommented:
glad I could help.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Databases

From novice to tech pro — start learning today.