I would still recommend taking the time to develop a properly normalized dB, but.........
Try this:
Open a new query. Add tables "RosterT" and "InstructorT". Link the tables as described above.
Now add another "InstructorT" table. It will display as "InstructorT_1". Link it to "AssistingInstructor1"
Add another "InstructorT" table. It will display as "InstructorT_2". Link it to "AssistingInstructor2"
Add another "InstructorT" table. It will display as "InstructorT_3". Link it to "AssistingInstructor3"
Add another "InstructorT" table. It will display as "InstructorT_4". Link it to "AssistingInstructor4"
Design view: (I didn't put all of the table fields in this example)
Attachment 11943
This is what the SQL would look like:
Code:
SELECT RosterT.RosterID, RosterT.CourseDate, [InstructorT_4].[FirstName] & " " & [InstructorT_4].[LastName] AS Assistant4, RosterT.Coursetime, RosterT.Course, [InstructorT].[FirstName] & " " & [InstructorT].[LastName] AS Lead, [InstructorT_1].[FirstName] & " " & [InstructorT_1].[LastName] AS Assistant1, [InstructorT_2].[FirstName] & " " & [InstructorT_2].[LastName] AS Assistant2, [InstructorT_3].[FirstName] & " " & [InstructorT_3].[LastName] AS Assistant3
FROM InstructorT AS InstructorT_1 RIGHT JOIN (InstructorT RIGHT JOIN (InstructorT AS InstructorT_4 RIGHT JOIN (InstructorT AS InstructorT_3 RIGHT JOIN (InstructorT AS InstructorT_2 RIGHT JOIN RosterT ON InstructorT_2.InstructorID = RosterT.AssistingInstructor2) ON InstructorT_3.InstructorID = RosterT.AssistingInstructor3) ON InstructorT_4.InstructorID = RosterT.AssistingInstructor4) ON InstructorT.InstructorID = RosterT.LeadInstructor) ON InstructorT_1.InstructorID = RosterT.AssistingInstructor1;
This would be for a report, not a data entry form.