Hi
I have a combo box from which I want to choose a list of options, which then will cause my second combo box to offer a list of options which are dependant on the first combo box.
It's not unsual I know but I don't understand why it doesn't work.
I have 2 tables (contacts and investors) and a form with the 2 cbos.
I chose first the "investor" (= company name) and then I want to filter the contacts in that particular company in my second cbo.
SQL for the first cbo:
SELECT tblINVESTORS.Investor_ID, tblINVESTORS.Name FROM tblINVESTORS ORDER BY [Name];
SQL for the 2nd cbo:
SELECT tblCONTATCS.Contact_ID, tblCONTACTS.Company, tblCONTACTS.Firstname, tblCONTACTS.Surname FROM tblCONTACTS WHERE (((tblCONTACTS.Company)=Forms!frmRECORD_NEW_INTERE STS!cbo_InvestorRecord)) ORDER BY [Surname], [Firstname];
I have an refresh query for the first cbo:
Private Sub cboManufacturer_AfterUpdate()
cboModel.Requery
End Sub
The problem: when I open the form a pop up asks "Enter Parameter Value
tblCONATCTS.Contact_ID..."
What is missing? I am sure it's quite basic but Access is not my cup of tea.
nianko
I have a combo box from which I want to choose a list of options, which then will cause my second combo box to offer a list of options which are dependant on the first combo box.
It's not unsual I know but I don't understand why it doesn't work.
I have 2 tables (contacts and investors) and a form with the 2 cbos.
I chose first the "investor" (= company name) and then I want to filter the contacts in that particular company in my second cbo.
SQL for the first cbo:
SELECT tblINVESTORS.Investor_ID, tblINVESTORS.Name FROM tblINVESTORS ORDER BY [Name];
SQL for the 2nd cbo:
SELECT tblCONTATCS.Contact_ID, tblCONTACTS.Company, tblCONTACTS.Firstname, tblCONTACTS.Surname FROM tblCONTACTS WHERE (((tblCONTACTS.Company)=Forms!frmRECORD_NEW_INTERE STS!cbo_InvestorRecord)) ORDER BY [Surname], [Firstname];
I have an refresh query for the first cbo:
Private Sub cboManufacturer_AfterUpdate()
cboModel.Requery
End Sub
The problem: when I open the form a pop up asks "Enter Parameter Value
tblCONATCTS.Contact_ID..."
What is missing? I am sure it's quite basic but Access is not my cup of tea.
nianko
