R
Rich J
I have a form with several comboxes. The first combobox (cboContractor) has
a list of companies. After the company is selected the next combobox
(cboWorker1) shows only the people who work for that company. After the
person is selected in the second cbo, their craft is shown in one more
(cboCraft) for reference only. That works great.
I want the next combobox (cboWorker2) to further filter the list of people
to only the same craft as the person in cboWorker1.
This is the row source code for cboWorker1 which works -
SELECT DISTINCT qryContrWkrs.WkrID,
qryContrWkrs.qWkrName,qryContrWkrs.tCraft,qryContrWkrs.ContrID FROM
[qryContrWkrs] WHERE qryContrWkrs.ContrID = cboContractor
This is one of the row source codes I've tried so far for cboWorker2 -
SELECT DISTINCT qryContrWkrs.WkrID,
qryContrWkrs.qWkrName,qryContrWkrs.tCraft,qryContrWkrs.ContrID FROM
[qryContrWkrs] WHERE qryContrWkrs.ContrID = cboContractor AND
qryContrWkrs.tCraft = cboWkr.Column(2)
I think part of the problem is that tCraft is not the primary field. I
think my concept can work but having trouble with the exact coding.
Any help would be appreciated.
a list of companies. After the company is selected the next combobox
(cboWorker1) shows only the people who work for that company. After the
person is selected in the second cbo, their craft is shown in one more
(cboCraft) for reference only. That works great.
I want the next combobox (cboWorker2) to further filter the list of people
to only the same craft as the person in cboWorker1.
This is the row source code for cboWorker1 which works -
SELECT DISTINCT qryContrWkrs.WkrID,
qryContrWkrs.qWkrName,qryContrWkrs.tCraft,qryContrWkrs.ContrID FROM
[qryContrWkrs] WHERE qryContrWkrs.ContrID = cboContractor
This is one of the row source codes I've tried so far for cboWorker2 -
SELECT DISTINCT qryContrWkrs.WkrID,
qryContrWkrs.qWkrName,qryContrWkrs.tCraft,qryContrWkrs.ContrID FROM
[qryContrWkrs] WHERE qryContrWkrs.ContrID = cboContractor AND
qryContrWkrs.tCraft = cboWkr.Column(2)
I think part of the problem is that tCraft is not the primary field. I
think my concept can work but having trouble with the exact coding.
Any help would be appreciated.