AllExperts > Using MS Access 
Search      
Using MS Access
Volunteer
Answers to thousands of questions
 Home · More Using MS Access Questions · Answer Library  · Encyclopedia ·
More Using MS Access Answers
Question Library

Ask a question about Using MS Access
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Scottgem
Expertise
I can answer almost all types of questions relating to Microsoft Access usage and application design. My strengths are database and interface design.

Experience
I've been designing databases for over 15 years working with dBase, FoxPro, Approach and Access.

Organizations
Author of Microsoft Office Access 2007 VBA
Techncial Editor for Special Edition Using Microsoft Access 2007 and Access 2007 Forms, Reports & Queries From Que Publishing

 
   

You are here:  Experts > Computing/Technology > Business Software > Using MS Access > Mass E-mail from Access 2007 query

Using MS Access - Mass E-mail from Access 2007 query


Expert: Scottgem - 7/4/2009

Question
I’ve seen in your answers you have helped others with the same type of question, but I can’t seem to make the pieces work together.  I can send a specific e-mail to a specific person using a form, but I can’t figure out how to automatically advance the form to the next record and send the next e-mail and continue the process to the end of the records.  Kind of like a mail merge from word, but staying in Access.  I’m a novice at VBA so please go gentle if I need to go to code.  Any assistance/advice you can give would be greatly appricated.

Answer
"but I can’t figure out how to automatically advance the form to the next record and send the next e-mail and continue the process to the end of the records"

That's because there is no way to do that. You are missing an essential piece and that's called looping. You need VBA to do this. In a nutshell, you need to open a recordset and loop through all the records in the set executing a SENDOBJECT method for each record. Look up looping, Do While and Recordsets in Access help for more details.

Hope this helps,
Scott<>
Microsoft Access MVP 2007
Author: Microsoft Office Access 2007 VBA

Add to this Answer   Ask a Question


 
User Agreement | Privacy Policy | Kids' Privacy Policy | Help
Copyright  © 2008 About, Inc. AllExperts, AllExperts.com, and About.com are registered trademarks of About, Inc. All rights reserved.