Hi All!
I've a Port combo box cboPort1 and 2 more cbo boxes called cboArea1 and cboRegion1.
Basically I want cboArea1 and cboRegion1 to fill in automatically after selecting a port.
I've got a SQL query that works on it's own, but not when it's attached to an event on the cboPort1.
This is the code so far:
How do I get it to actally insert the results into the cboArea1 and cboRegion1?
Any help would be greatly appreciated.
Cheers
I've a Port combo box cboPort1 and 2 more cbo boxes called cboArea1 and cboRegion1.
Basically I want cboArea1 and cboRegion1 to fill in automatically after selecting a port.
I've got a SQL query that works on it's own, but not when it's attached to an event on the cboPort1.
This is the code so far:
Code:
SELECT tblArea.strArea, tblRegion.strRegion
FROM tblRegion INNER JOIN (tblArea INNER JOIN tblPorts ON tblArea.Area_ID=tblPorts.tblArea_ID) ON tblRegion.Region_ID=tblArea.tblRegion_ID
WHERE (((tblArea!Area_ID)=tblPorts!tblArea_ID) And ((tblRegion!Region_ID)=tblArea!tblRegion_ID) And ((tblPorts.strPort)=forms!frmPositions.cboPort1));
How do I get it to actally insert the results into the cboArea1 and cboRegion1?
Any help would be greatly appreciated.
Cheers