T
Tony Williams
I have a form which has a combo box containing the names of companies based
on tblbusiness. When I select a company I want it to trigger the population
of a subform that contains the names of individulas (txtfirstname and
txtsurname) from a table called tblindividual. I've tried all different
combinations basing the form on a query but I can't get it right. The form
and main form are linked on two fields in each table called txtbusinessname.
Ther are 12 businesses but I get 30 records which is the number of
individuals, so some companied are repeated by the number of individuals in
that company. Here is my sql from the subform
SELECT tblindividual.txtfirstname, tblindividual.txtsurname,
tblindividual.txtbusinessname FROM tblindividual RIGHT JOIN tblBusiness ON
tblindividual.txtbusinessname = tblBusiness.txtbusinessname;
Anyone help?
Thanks
Tony
on tblbusiness. When I select a company I want it to trigger the population
of a subform that contains the names of individulas (txtfirstname and
txtsurname) from a table called tblindividual. I've tried all different
combinations basing the form on a query but I can't get it right. The form
and main form are linked on two fields in each table called txtbusinessname.
Ther are 12 businesses but I get 30 records which is the number of
individuals, so some companied are repeated by the number of individuals in
that company. Here is my sql from the subform
SELECT tblindividual.txtfirstname, tblindividual.txtsurname,
tblindividual.txtbusinessname FROM tblindividual RIGHT JOIN tblBusiness ON
tblindividual.txtbusinessname = tblBusiness.txtbusinessname;
Anyone help?
Thanks
Tony