G
Guest
I currently have the following SQL in the Row Source for a list box. The goal
is to find out the name of the employer bsaed on the customer's name
(ingzCustNo in table tblEvaluation) when it is selected in a certain form.
I have three tables: tblEmployer that holds my company information,
tblContacts that holds the contacts' information, and tblEvaluation that
holds the evaluations' information. On the form for which tblEvalution is
based, I'm able to write SQL to pull values from tblContacts because
tblContacts is joined via relationship to tblEvaluation. Because
tblEvaluation isn't directly joined to tblEmployer, my SQL doesn't work. How
can I pull the name of the company that the contact works for into my
Evaluation form?
SELECT tblEmployer.chrER FROM tblEmployer WHERE
tblEvaluation.ingzCustNo=tblContacts.atnCustNo AND
tblEmployer.atnERNo=tbContacts.ingzEmployer;
is to find out the name of the employer bsaed on the customer's name
(ingzCustNo in table tblEvaluation) when it is selected in a certain form.
I have three tables: tblEmployer that holds my company information,
tblContacts that holds the contacts' information, and tblEvaluation that
holds the evaluations' information. On the form for which tblEvalution is
based, I'm able to write SQL to pull values from tblContacts because
tblContacts is joined via relationship to tblEvaluation. Because
tblEvaluation isn't directly joined to tblEmployer, my SQL doesn't work. How
can I pull the name of the company that the contact works for into my
Evaluation form?
SELECT tblEmployer.chrER FROM tblEmployer WHERE
tblEvaluation.ingzCustNo=tblContacts.atnCustNo AND
tblEmployer.atnERNo=tbContacts.ingzEmployer;