Ref: Thread 702-740081
I have a form with a combo box (Dispname)which enables the user to select from a table called "Ports". I would like the next combo box (Termname) to be able to display a list of the terminals that are associated with the port selected in Dispname combo box, so that the user can select the appropriate terminal. These terminals are listed against port name in another table called "Terminals".
I have tried to use the ideas in the thread above but cannot get the "Termname" combo box to give me the list required. The code I am using in the row source is:
However, when I use this code, I receive an error message as follows:
Syntax error (missing operator) in query expression '[terminals].[port name]=cbo[dispname]
Could someone please give some ideas on how to resolve this problem
Thanks
John Draper
I have a form with a combo box (Dispname)which enables the user to select from a table called "Ports". I would like the next combo box (Termname) to be able to display a list of the terminals that are associated with the port selected in Dispname combo box, so that the user can select the appropriate terminal. These terminals are listed against port name in another table called "Terminals".
I have tried to use the ideas in the thread above but cannot get the "Termname" combo box to give me the list required. The code I am using in the row source is:
Code:
SELECT [terminal name] FROM [terminals] WHERE [terminals].[port name]=cbo[dispname]
However, when I use this code, I receive an error message as follows:
Syntax error (missing operator) in query expression '[terminals].[port name]=cbo[dispname]
Could someone please give some ideas on how to resolve this problem
Thanks
John Draper