Hi all,
I have a list box based on a query. I want this list box to NOT SHOW items in the list that have been completed for that particular User. I can get the list box to show what I want (sort of) by using the NOT IN () sub query. However I want the list box to show all the records for the next "new" user that comes up.
I have a table called Completed training that houses the employeeId, ObjectiveID, trainerID (another employee), Date completed.
My combo box is named "cmbEmployee" on a form called "frmCompletedTraining".
Below is the SQL code for the list box.
Thanks!
Larry
I have a list box based on a query. I want this list box to NOT SHOW items in the list that have been completed for that particular User. I can get the list box to show what I want (sort of) by using the NOT IN () sub query. However I want the list box to show all the records for the next "new" user that comes up.
I have a table called Completed training that houses the employeeId, ObjectiveID, trainerID (another employee), Date completed.
My combo box is named "cmbEmployee" on a form called "frmCompletedTraining".
Below is the SQL code for the list box.
Code:
SELECT ObjectiveTitle.OTID, ObjectiveTitle.OT
FROM ObjectiveTitle
WHERE (((ObjectiveTitle.OTID) Not In (Select ObjectiveID From CompletedTraining)));
Thanks!
Larry