Hello, i would like a solution about three list boxes that i have on an unbound form that i need to populate from selections on A) first and b) second
here it is
first on is lstInstructor
second on is lstGroups
and the third is lstAthlets
Any help would be appreciated
here it is
first on is lstInstructor
Code:
SELECT Tbl_Instructor.instructorID, Nz([iSurname] & " " & [iName]) AS Instructor, Tbl_Courses.courseID FROM Tbl_Instructor INNER JOIN Tbl_Courses ON Tbl_Instructor.instructorID = Tbl_Courses.courseID;
second on is lstGroups
Code:
SELECT Tbl_Courses.courseID AS ID, [dName] & " | " & [dDepartmName] AS Course, Tbl_Courses.courseID FROM Tbl_Departments INNER JOIN Tbl_Courses ON Tbl_Departments.departmID = Tbl_Courses.departmID ORDER BY Tbl_Courses.courseID;
and the third is lstAthlets
Code:
SELECT Tbl_Courses.courseID, " " & [aSurname] & " " & [aName] AS Athlet FROM Tbl_Departments INNER JOIN (Tbl_Athlets INNER JOIN (Tbl_Courses INNER JOIN Tbl_AthletCourse ON Tbl_Courses.courseID=Tbl_AthletCourse.courseID) ON Tbl_Athlets.atheltID=Tbl_AthletCourse.atheltID) ON Tbl_Departments.departmID=Tbl_Courses.departmID ORDER BY Tbl_Courses.courseID;
Any help would be appreciated