Hello,
I am currently about to give up after scouring the internet for how to do this, it's probably a relatively novice answer, but I am a relatively novice user.
I have three tables
The equipment table is joined one to many to tblCompartment, and tblCompartmentL ist is joined one to many on tblCompartment.
I have a Form where users choose from a drop box a piece of equipment. Below that I have a sub form. In that subform I want to display each compartmentCode and compartmentName that has not been entered for that piece of equipment into tblCompartmentI D.
Heres my code that doesn't seem to exist for that subform:
What am I doing wrong? Is there a better way?
I am currently about to give up after scouring the internet for how to do this, it's probably a relatively novice answer, but I am a relatively novice user.
I have three tables
Code:
tblEquipment: (P) equipmentID, equipmentDescription tblCompartment: compartmentCode, equipmentID, (P)compartmentAutoID tblCompartmentList: (P)compartmentCode, compartmentName
I have a Form where users choose from a drop box a piece of equipment. Below that I have a sub form. In that subform I want to display each compartmentCode and compartmentName that has not been entered for that piece of equipment into tblCompartmentI D.
Heres my code that doesn't seem to exist for that subform:
Code:
SELECT
tblCompartmentList.compartmentCode,
tblCompartmentList.compartmentName,
tblCompartment.equipmentID
FROM
tblCompartmentList
LEFT JOIN tblCompartment
ON tblCompartmentList.compartmentCode = tblCompartment.compartmentCode
WHERE
(((tblCompartment.compartmentCode) Is Null));
What am I doing wrong? Is there a better way?
Comment