Still having some issues with this. Here's the code that drives my combo box:
Form: [Current_TNC]
Combo Box for Name: [curr_tnc_supp_name]
SELECT [PS_Supplier_Info].[SUPRO_Supplier_Name], [PS_Supplier_Info].[SUPRO_Current_ Supplier] FROM PS_Supplier_Info WHERE ((([PS_Supplier_Info].[SUPRO_Current_ Supplier])="1"));
This displays a list of supplies Names. Depending on the name chosen, I need the corresponding supplier number ([PS_Supplier_Info].[SUPRO_Supplier_No]) to display in a text box or label that is shown below the combo.
Temporarily, I have this working by a 2nd combo box using:
SELECT [PS_Supplier_Info].[SUPRO_Supplier_No] FROM PS_Supplier_Info WHERE (([PS_Supplier_Info]![SUPRO_Supplier_Name]=[Forms]![Current_TNC]![curr_tnc_supp_name]));
This code does work, however once the first name is selected, the number is still needed to be selected. The 2nd code queries the [PS_Supplier_Info] table based on criteria of the name selection from the 1st combo box.
I am looking to remove the manual step of choosing the number.