I am trying to use a combo box to show a list of values from a table where the SysID is the same as the IDCode of a different table (of the record currently being displayed). What is the best way to do this? I tried using the following query:
SELECT Table2.Description
FROM Table2
WHERE (((Table2.SysID)=[Table1].[IDCode]));
Then I set the row source of the combo box to run the query. When I try to look at the combo box, the list is always blank. I want it to look at the CURRENT value of IDCode and list all records in Table2 that have the same SysID. Since it does not prompt me for parameter value Table1.IDCode what other info would it need to fill this list? What could be wrong and should I take a different approach? I want the user to look at this list created in the combo box, choose 1 of these based on the description, and see additional information about that record from table 2. Thanks!
SELECT Table2.Description
FROM Table2
WHERE (((Table2.SysID)=[Table1].[IDCode]));
Then I set the row source of the combo box to run the query. When I try to look at the combo box, the list is always blank. I want it to look at the CURRENT value of IDCode and list all records in Table2 that have the same SysID. Since it does not prompt me for parameter value Table1.IDCode what other info would it need to fill this list? What could be wrong and should I take a different approach? I want the user to look at this list created in the combo box, choose 1 of these based on the description, and see additional information about that record from table 2. Thanks!