T
TeeSee
The following SQL is in the RowSource of a combo. The majority seems
to work (I get all contacts in the table) until I add the WHERE clause
in order to limit the contacts to only those that are JOINED to the
Company by way of one of my new JOIN tables.
SELECT tblContacts.pkContactID, tblContacts.txtFirstName,
tblContacts.txtLastName, tblCompanyContacts.fpkContactID,
tblCompanyContacts.fpkCompanyID
FROM tblContacts
INNER JOIN tblCompanyContacts
ON tblContacts.pkContactID=tblCompanyContacts.fpkContactID
WHERE tblCompanyContacts.fpkCompanyID=tblProjectCompany.fpkCompanyID
frmProjectCompany is parent to frmCompanyContacts
If someone could steer me in the right direction I'd sure appreciate
it.
to work (I get all contacts in the table) until I add the WHERE clause
in order to limit the contacts to only those that are JOINED to the
Company by way of one of my new JOIN tables.
SELECT tblContacts.pkContactID, tblContacts.txtFirstName,
tblContacts.txtLastName, tblCompanyContacts.fpkContactID,
tblCompanyContacts.fpkCompanyID
FROM tblContacts
INNER JOIN tblCompanyContacts
ON tblContacts.pkContactID=tblCompanyContacts.fpkContactID
WHERE tblCompanyContacts.fpkCompanyID=tblProjectCompany.fpkCompanyID
frmProjectCompany is parent to frmCompanyContacts
If someone could steer me in the right direction I'd sure appreciate
it.