Newbe, I have searched forum but could not find something identical:
Have 4 tables:
exams
invigilators
invigactivity
invigstatus
fields:
exams:eid, [plus other not relevant stuff]
invigilators: invigID, invigstatusID [plus other not relevant]
invigstatus: invigstatusID, invigstatus
invigactivity: invigactivityID, invigID and eid
Have primary form: 'exams' with subform 'invigilator_activity'
really simple stuff so far huh! so essentially the subform shows the invigilators associated with a particular exam.
what i can not do is in the combo for the invigilators activity, reduce the available invigilators as they get allocated, eg. invig1, invig2, invig3. when there are no invigilators allocated, i should click the dropdown and see all 3, but say i allocate invig1, on the next record when i click on the dropdown, i want to see only invig2 and invig3 as invig1 has already been allocated and want to avoid invigilator being allocated twice in error.
i tried placing this on combo source:
SELECT INVIGILATORS.INVIGID, ([INVIGILATORS].[INVIGFIRST] & " " & [INVIGILATORS].[INVIGOTHER] & " " & [INVIGILATORS].[INVIGLAST]) AS [FULL NAME], INVIGSTATUS.INVIGSTATUSID
FROM INVIGSTATUS INNER JOIN INVIGILATORS ON INVIGSTATUS.INVIGSTATUSID = INVIGILATORS.INVIGSTATUSID
WHERE (((INVIGSTATUS.INVIGSTATUSID)=2) AND ((Exists (SELECT INVIGACTIVITY.INVIGID,INVIGACTIVITY.EID FROM INVIGACTIVITY WHERE INVIGACTIVITY.INVIGID = INVIGILATORS.INVIGID AND INVIGACTIVITY.EID = [Forms]![EXAMS]![EID].[value]))=False));
This kind of works in that it does restrict, but additionally does not show the records that exist, that HAVE been allocated. I hope this makes some kind of sense and any help gratefully recieved, but if you need more info, please let me know.
Have 4 tables:
exams
invigilators
invigactivity
invigstatus
fields:
exams:eid, [plus other not relevant stuff]
invigilators: invigID, invigstatusID [plus other not relevant]
invigstatus: invigstatusID, invigstatus
invigactivity: invigactivityID, invigID and eid
Have primary form: 'exams' with subform 'invigilator_activity'
really simple stuff so far huh! so essentially the subform shows the invigilators associated with a particular exam.
what i can not do is in the combo for the invigilators activity, reduce the available invigilators as they get allocated, eg. invig1, invig2, invig3. when there are no invigilators allocated, i should click the dropdown and see all 3, but say i allocate invig1, on the next record when i click on the dropdown, i want to see only invig2 and invig3 as invig1 has already been allocated and want to avoid invigilator being allocated twice in error.
i tried placing this on combo source:
SELECT INVIGILATORS.INVIGID, ([INVIGILATORS].[INVIGFIRST] & " " & [INVIGILATORS].[INVIGOTHER] & " " & [INVIGILATORS].[INVIGLAST]) AS [FULL NAME], INVIGSTATUS.INVIGSTATUSID
FROM INVIGSTATUS INNER JOIN INVIGILATORS ON INVIGSTATUS.INVIGSTATUSID = INVIGILATORS.INVIGSTATUSID
WHERE (((INVIGSTATUS.INVIGSTATUSID)=2) AND ((Exists (SELECT INVIGACTIVITY.INVIGID,INVIGACTIVITY.EID FROM INVIGACTIVITY WHERE INVIGACTIVITY.INVIGID = INVIGILATORS.INVIGID AND INVIGACTIVITY.EID = [Forms]![EXAMS]![EID].[value]))=False));
This kind of works in that it does restrict, but additionally does not show the records that exist, that HAVE been allocated. I hope this makes some kind of sense and any help gratefully recieved, but if you need more info, please let me know.