I'm using Windows 7, Access 2007, Outlook 2010
Background:
My situation is that I have a report that I need to email out to different people using vba. I've written the script to generate the email, attach the report (actually in the body of the email) and send it to the correct people.
Issue:
My issue is that I want to send only the relevant records from the report to each person. I've put the relevant person's email into the report (of a query) to make it easier. I want to email all the records with one email address to that email address and so on.
Example:
This would mean, for example, there are 6 records with axkoam@company. com in the email field of the report and 3 records with notaxkoam@compa ny.com. I want the 6 records with axkoam@company. com to be emailed to axkoam@company. com and the 3 records with notaxkoam@compa ny.com to be emailed to notaxkoam@compa ny.com.
Is there any help someone can give me?
If you need more clarification and/or my code just let me know. Thanks!
Background:
My situation is that I have a report that I need to email out to different people using vba. I've written the script to generate the email, attach the report (actually in the body of the email) and send it to the correct people.
Issue:
My issue is that I want to send only the relevant records from the report to each person. I've put the relevant person's email into the report (of a query) to make it easier. I want to email all the records with one email address to that email address and so on.
Example:
This would mean, for example, there are 6 records with axkoam@company. com in the email field of the report and 3 records with notaxkoam@compa ny.com. I want the 6 records with axkoam@company. com to be emailed to axkoam@company. com and the 3 records with notaxkoam@compa ny.com to be emailed to notaxkoam@compa ny.com.
Is there any help someone can give me?
If you need more clarification and/or my code just let me know. Thanks!
Comment