Emailing Reports based on data from specific field

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Brandon Marvel
    New Member
    • Dec 2011
    • 1

    Emailing Reports based on data from specific field

    Ok I have a table (table1) of student information and grades. Only fields I need to focus on are "Grade" and "School". I have a query that filters the grades (query1) but need help figuring out how to email 1 report to each school with list of students. I dont know how to call out data from a field and send email based off of the data. So if ASU has 20 students listed and I need to send email to ASU with that report, but in next step send email to LSU with its report. I have this figured out the hard way with several queries by several I mean 4798 with 4789 reports and using macros to send the email this way sucks. Need it to pull list look at school the email that school with its list and continue down the list of schools until all schools are emailed. Any help with how to start would be a life saver. Thanks
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    The steps would be
    1) Create a recordset with each school and its e-mail address.
    2) Loop through each record.
    3) Send the report filtered by the school to the e-mail address.

    Comment

    Working...