Hello ,
I am trying to ve a cascading combo box in my form. I ve 2 Combo Boxes. Combo0 is based on the table TEST 1 and combo8 is based on table TEST 2.
TEST 1 has Company ID (Primary Key) , Company Name .
TEST2 has Address , Company ID
I ve linked the 2 tables through company ID.
The above does nt work for me.
Could anyone please tell me where am i going wrong.
Thanks a lot.
Regards ,
Shreyans
I am trying to ve a cascading combo box in my form. I ve 2 Combo Boxes. Combo0 is based on the table TEST 1 and combo8 is based on table TEST 2.
TEST 1 has Company ID (Primary Key) , Company Name .
TEST2 has Address , Company ID
I ve linked the 2 tables through company ID.
Code:
Private Sub Combo0_AfterUpdate() With Me![Combo8] If IsNull(Me!Combo0) Then .RowSource = " " Else .RowSource = "SELECT [Address] " & _ "FROM TblTEST 2 " & _ "WHERE [Company ID]=" & Me!Combo0 End If Call .Requery End With End Sub
Could anyone please tell me where am i going wrong.
Thanks a lot.
Regards ,
Shreyans
Comment