I have been searching for a way to limit the values in a combo box, so that records already added in a continuous subform can't be chosen again. Weird thing is, I'm not seeing this as a common thing to do.
I have a subform with "requirements". The sub form has a combo with requirement types. So if the main form record source is contacts, and the sub form record source is contactrequirements, how does one limit those requirement types in that combo to ones that are not in the contactrequirements table, for the main contact form's ID. I tried to set the combo's rowsource to this:
It limits the combo, but all the records that already exist on the (continuous) sub form are blank now, because they were limited from showing.
Is this something anyone has been able to figure out successfully?
misscrf
It is never too late to become what you could have been ~ George Eliot
I have a subform with "requirements". The sub form has a combo with requirement types. So if the main form record source is contacts, and the sub form record source is contactrequirements, how does one limit those requirement types in that combo to ones that are not in the contactrequirements table, for the main contact form's ID. I tried to set the combo's rowsource to this:
Code:
SELECT tblReqType.ID, tblReqType.txtRequirementType, tblReqType.txtRequirementPage
FROM tblReqType
WHERE (((tblReqType.ID) Not In (Select [tblMContactRequirements]![FKRequirementType] From tblMContactRequirements Where [tblMContactRequirements]![FKContact] = Forms![frmMContacts]![ID] )))
ORDER BY tblReqType.txtRequirementType;
It limits the combo, but all the records that already exist on the (continuous) sub form are blank now, because they were limited from showing.
Is this something anyone has been able to figure out successfully?
misscrf
It is never too late to become what you could have been ~ George Eliot