Conflict of intrest (1 Viewer)

dennisbowman

New member
Local time
Today, 10:16
Joined
Aug 8, 2020
Messages
1
I need a form that has One comboboxe and a listbox. The Comobox holds a list of students and a list box that only displays only the teacher that havent taught the student.
for example if i have 4 employee one name don, and don had a lesson with a student,when that student is selected all the employees are listed in the listbox except don.

Thanks in advance
Dennis
 

theDBguy

I’m here to help
Staff member
Local time
Today, 07:16
Joined
Oct 29, 2018
Messages
21,477
You can either use the Not In() or Not Exist in your WHERE clause.
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 22:16
Joined
May 7, 2009
Messages
19,248
for the listbox,
you can first create a query that will list all possible Student + Teacher combination (see qryCrossJoinTeachersStudents query).
then create a query that will list teachers not already taught the student (qryLstSource, this is the row source of the listbox).
see Form1.
 

Attachments

  • StudentTeacher.accdb
    608 KB · Views: 59

Users who are viewing this thread

Top Bottom