I have a form that runs a report, that's based on the following query:
SELECT Course.AddressID, Employees.EmployeeID, Employees.EmployeeName, Employees.Subcontractor, Employees.Division, Employees.Title AS EMPtitle, StudentTitle.Description, Course.Location, Employees.[Cell#], Employees.LEEDAcredited, Employees.LEEDID, Employees.Email, Employees.[Radio#], Employees.[Phone#], Employees.[Home#], Employees.Address, Employees.State, Employees.Zip, Employees.City, Employees.[Start Date] AS STARTDATE, Employees.[Start Date], Employees.Certification, Employees.[Todays Date], Employees.Email, Employees.PriorOSHA10, Employees.PriorOSHA30, Employees.PriorFirstAid, Employees.AssignedVehicle,
Employees.Instructor, Employees.Purge, Course.CourseCredits, Course.InstructorID1, Course.InstructorID2, Course.CourseName, Course.Mandatory, Course.StartOfCourse, Course.EndOfCourse, Course.CourseDate, qryInstructors1.EmployeeNa
me AS INST1, qryInstructors1.Title, qryInstructors2.EmployeeNa
me AS INST2, qryInstructors2.Title
FROM (qryInstructors2 INNER JOIN (qryInstructors1 INNER JOIN Course ON qryInstructors1.EmployeeID
= Course.InstructorID1) ON qryInstructors2.EmployeeID
= Course.InstructorID2) INNER JOIN (StudentTitle INNER JOIN (Employees INNER JOIN Students ON Employees.EmployeeID = Students.EmployeeID) ON StudentTitle.Title = Employees.Title) ON Course.AddressID = Students.AddressID
WHERE (((Employees.EmployeeName)
<>"Video-b
ased (HITT)" And (Employees.EmployeeName)<>
"") AND ((Employees.Subcontractor)
=False) AND ((Employees.Purge)=False) AND ((Course.CourseName) Is Not Null) AND ((Course.CourseDate) Between [start date (Example: 01/01/04)] And [end date (Example: 01/01/04)]))
ORDER BY Employees.EmployeeName;
I want to place a button on the form ("StudentInfo") which, on click, automatically sends each person's -ONLY - record to them via their email address ("Employees.Email") and all other requirements of the query in SNP format. For all records where [Employees.Email] =<> OR ="none@blahblah.com" skip record, go to next EmployeeID.
I NEED THIS MEGA FAST!!!!
Start Free Trial