Hello everyone,
I have a form titled "frmInstallationAudit". On this form are two combo boxes. In the first combo box are company names which are pulled from the table "tblCustomers". In the second combo box, I wish to display a list of contacts which relate to the company chosen in the first box. These contacts are pulled from the table "maillist". I understand that I need an SQL statement on the second combo box. I have this. The query builder displays the fields: Name, from Maillist; Company, from Maillist; and Company, from tblCustomers. the SQL statement is as follows:
SELECT Maillist.Name, Maillist.Company, tblCustomers.Company
FROM Maillist INNER JOIN tblCustomers ON Maillist.Company = tblCustomers.Company
WHERE (((Maillist.Company)=[Forms]![frmInstallationAudit]![Company]));
Does anyone have any idea why the second combo box is blank?
Thanks a lot, any help is appreciated.
I have a form titled "frmInstallationAudit". On this form are two combo boxes. In the first combo box are company names which are pulled from the table "tblCustomers". In the second combo box, I wish to display a list of contacts which relate to the company chosen in the first box. These contacts are pulled from the table "maillist". I understand that I need an SQL statement on the second combo box. I have this. The query builder displays the fields: Name, from Maillist; Company, from Maillist; and Company, from tblCustomers. the SQL statement is as follows:
SELECT Maillist.Name, Maillist.Company, tblCustomers.Company
FROM Maillist INNER JOIN tblCustomers ON Maillist.Company = tblCustomers.Company
WHERE (((Maillist.Company)=[Forms]![frmInstallationAudit]![Company]));
Does anyone have any idea why the second combo box is blank?
Thanks a lot, any help is appreciated.