TIgerV
asked on
Running reports by field value
I have a membership database where the membership is broken up by Region and Chapter numbers.
I would like to run a report for each of the 100 chapters with only their membership, and export it to a PDF named "REGION x CHAPTER xxx" where x=value of region and chapter numbers.
Do I need to make individual exports, or can I do this easily.
Added bonus: under documents\roster\ I have folders divided by region (7 of them numbered 0 to 6). I'd like to save the pdf into those folders.
I would like to run a report for each of the 100 chapters with only their membership, and export it to a PDF named "REGION x CHAPTER xxx" where x=value of region and chapter numbers.
Do I need to make individual exports, or can I do this easily.
Added bonus: under documents\roster\ I have folders divided by region (7 of them numbered 0 to 6). I'd like to save the pdf into those folders.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
als315 came in first. both excellent solutions
Then I create a recordset and loop through the recordset, filtering the report for each chapter, then save/send the report using docmd.OutputTo and docmd.SendObject methods. Using this technique ensures speeds things up over opening the report 100 times with a unique WHERE condition.
It might look something like:
Open in new window
Using SendObject this way, you may get a bunch of Outlook warning messages popup. I personally use vbMAPI to handle this issue.