I have 3 tables
"Field"
[tblplant]
"ID"
"Plantnum"
[tblboiler]
"ID"
"boilerName"
"Plantnum" - Lookup tblplant
[tblProduction]
"ID"
"UnitName"
"PlantNum" - Lookup tblplant
I have a form with a 2 combo boxes. cboPlant. CboEquipment.
I'm using a union query to populate boilername and unitname and show both values in cboequipment.
Works great. How would I combine that with a filter on cboplant so it will only show results meeting the selection?
Thanks.
[tblplant]
"ID"
"Plantnum"
[tblboiler]
"ID"
"boilerName"
"Plantnum" - Lookup tblplant
[tblProduction]
"ID"
"UnitName"
"PlantNum" - Lookup tblplant
I have a form with a 2 combo boxes. cboPlant. CboEquipment.
I'm using a union query to populate boilername and unitname and show both values in cboequipment.
Code:
Select tblboiler.boilername from tblboiler union select tblproduction.unitname from tblproduction
Thanks.