This encompasses every aspect of Access, so I just posted it in the general.
I have become pretty familiar with the email functions, and have just volunteered myself for a new update.
We are going to call this a lottery notification.
Employees are selected at random from a list of all employees. If the employee is a winner, we will email their supervisor. I have generated a make table query that selects my winners. The list is 175 names. There are about 40 supervisors. I want a doSendcmd option to send an email to
Supervisor 1, and include in the body the list of employees HE is the supervisor for.
Supervisor 2, and her employees..
SendObject (SendNoObject,,,,strSup,,strEmailEmp,,"Please be advised that the following employees" & "; " & strEmp & " have won the lottery for this month...."
Its the actual strings I am having trouble with.
The newly created table is "employees_selected" with the following fields
employee_name
supervisor_name
Supervisor_email
employee_number (randomly generated and sorted for the "selection" so doesn't really apply to my string)
Thoughts? or is this impossible?
I really want to hit ONE button, and it compile the 30-60 emails at once. I could easily do a single email and BCC all supervisors with the entire list saved as a PDF, that's easy, but I don't need all supervisors knowing who won the lottery.
Am I insane?