G
Guest
I have the following sql and would like a list in a drop-down to only display
the positions that have not already been selected. If a positionId in
tblSchedule is on 9/16/05 shift 2 then don't show that position in the list.
I hope I explaned it enough. Does anyone know how to do this?
-----------------sql---------------------
SELECT tblPosition.PositionID, tblPosition.PositionName,
tblPosition.ShiftID, FROM tblPosition LEFT JOIN tblSchedule ON
tblPosition.PositionID = tblSchedule.PositionID
GROUP BY tblPosition.PositionID, tblPosition.PositionName,
tblPosition.ShiftID,
HAVING (((tblPosition.ShiftID)=[Forms].[frmSchedule].[cboShiftID]))
ORDER BY tblPosition.PositionName;
----------------------end sql---------------------------
the positions that have not already been selected. If a positionId in
tblSchedule is on 9/16/05 shift 2 then don't show that position in the list.
I hope I explaned it enough. Does anyone know how to do this?
-----------------sql---------------------
SELECT tblPosition.PositionID, tblPosition.PositionName,
tblPosition.ShiftID, FROM tblPosition LEFT JOIN tblSchedule ON
tblPosition.PositionID = tblSchedule.PositionID
GROUP BY tblPosition.PositionID, tblPosition.PositionName,
tblPosition.ShiftID,
HAVING (((tblPosition.ShiftID)=[Forms].[frmSchedule].[cboShiftID]))
ORDER BY tblPosition.PositionName;
----------------------end sql---------------------------