Heres an idea.
First , you need to create a union query to seperate out just the 123, 234, & 345 class enrollment.
<!-- This is the UNION query -->
SELECT tblEnrollment.EnrollmentID, tblCourse.CourseName
FROM tblCourse INNER JOIN tblEnrollment ON tblCourse.CourseID = tblEnrollment.Course
WHERE (((tblCourse.CourseName)="123"));
UNION ALL
SELECT tblEnrollment.EnrollmentID, tblCourse.CourseName
FROM tblCourse INNER JOIN tblEnrollment ON tblCourse.CourseID = tblEnrollment.Course
WHERE (((tblCourse.CourseName)="234"));
UNION ALL SELECT tblEnrollment.EnrollmentID, tblCourse.CourseName
FROM tblCourse INNER JOIN tblEnrollment ON tblCourse.CourseID = tblEnrollment.Course
WHERE (((tblCourse.CourseName)="345"));
Then you need to query that against the tblStudent to see who is enrolled in just these classes
<!-- This is the Second Query -->
SELECT tblStudent.Name, Query1.CourseName
FROM Query1 INNER JOIN (tblStudent INNER JOIN tblEnrollment ON tblStudent.SSnum = tblEnrollment.Student) ON Query1.EnrollmentID = tblEnrollment.EnrollmentID;
Now run totals on that, using group by on the name and count on the enrollment ID.
<!-- This is the Second Query Revised Once -->
SELECT tblStudent.Name, Count(Query1.CourseName) AS CountOfCourseName
FROM Query1 INNER JOIN (tblStudent INNER JOIN tblEnrollment ON tblStudent.SSnum = tblEnrollment.Student) ON Query1.EnrollmentID = tblEnrollment.EnrollmentID
GROUP BY tblStudent.Name;
Finally filter the list of names down to just those enrolled in all three classes by simply adding the criteria ="3" to the enrollment ID field in the query (where you set the count).
<!-- This is the Second Query Final Revision -->
SELECT tblStudent.Name, Count(Query1.CourseName) AS CountOfCourseName
FROM Query1 INNER JOIN (tblStudent INNER JOIN tblEnrollment ON tblStudent.SSnum = tblEnrollment.Student) ON Query1.EnrollmentID = tblEnrollment.EnrollmentID
GROUP BY tblStudent.Name
HAVING (((Count(Query1.CourseName))=3));
NOTE: Query1 in the second query is the Union Query
Let me know if this is a bit confusing or not. If the field or tbl names are not accurate, modify the above code to reflect the changes. I suggest you drop it into word or notepad and use the FIND/REPLACE function if necessary to ensure you get all changes necessary. Open the query builder and switch to SQL mode, then paste this into the SQL builder. Save it and it should function as expected. YOu may need to add fields to ensure that you get the data that you need, OR you can run the results of the second query against the student listing and pull up all the additional information you may need.
Let me know if this helps.