I’ve asked this question before, but I never really got an answer. This is something that would make a huge impact on my daily work and an application for its use has come up again. Here is the premise:
Below there is a table and a report. Table, tblEmailAddresses shows the team name in the first column and the email in the second column. Next you see a Report, rptProductsSold. This report shows the products sold and their amount. It is also grouped by team name.
The goal is through VBA (I assume it would have to be) send only the section of the report that is relevant to each team to the corresponding email address in tblEmailAddresses. The result would be similar to a mail merge in word from an excel file. Each email recipient would only receive the information corresponding to their row of data. Any example databases, YouTube videos, websites, or explanations in the comments below would be greatly appreciated.
tblEmailAddresses
TeamName EmailAddress Green Green@email.com Blue Blue@email.com Red Red@email.com
rptProductsSold
Team Product Price Green #1 $1.00 Green #2 $2.00 Green #3 $5.00 Blue #1 $1.00 Blue #4 $6.00 Red #3 $3.50 Red #1 $1.00
Expected Result
Blue@email.com would get a report showing only the information below
Blue #1 $1.00 Blue #4 $6.00
Red@email.com would get a report showing only the information below
Red #3 $3.50 Red #1 $1.00
Green@email.com would get a report showing only the information below
Green #1 $1.00 Green #2 $2.00 Green #3 $5.00