Re: Loop to export report and email to each person
- From: "Tony Toews [MVP]" <ttoews@xxxxxxxxxxxxxxx>
- Date: Thu, 23 Aug 2007 18:33:54 -0600
charliesangels <charliesangels@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
What I would like to do is have some code that runs the query, selects a
project manager, run the query / report with only that project manager?s
data, export to Word (rich text), e-mail the report, then move on to the next
project manager and repeat.
So you need two queries. One by sample and another with the sample's
project managers on it.
For sample recordset looping logic see
http://www.granite.ab.ca/access/email/recordsetloop.htm
So you will have the loop for the project manager(s) records that
match that sample inside the loop for the sample.
Within the second loop you will do your work of sending the emails,
etc, etc.
Now why use Word? Why not create the report and then make a PDF file
from it? That would be less hassle I would think.
A2000ReportToPDF is an Access 2000 database containing a function to
convert Reports and Snapshot files to PDF documents. No PDF Printer
driver is required.
http://www.lebans.com/reporttopdf.htm
Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
.
- Prev by Date: RE: Emailing with multiple attachments.
- Next by Date: Re: How to populate a list box based on user input?
- Previous by thread: Re: display warning message
- Next by thread: Re: How to populate a list box based on user input?
- Index(es):
Relevant Pages
|