G
Guest
How do I add a non-parameter SQL Query to a Text Box Control?
I have a form based on a table. One of the controls is a ComboBox that
allows selection of values from a Primary Key in another table. Upon
selection of the Value, I would like to populate another Text Box on the form
with a value from the other table. E.g.: By selecting CustomerID in the
Combo Box, the Text Box populates with CustomerName. Adding a normal SQL
Query to the Control Source value in the Text Box to the does not seem to
work. (E.g. (SELECT [CustomerName] from [Customer] WHERE [MyTable].[CustID]
= [Customer].[CustID]?) I do not want a parameter query that prompts for the
value when the form is opened. Is this possible?
I have a form based on a table. One of the controls is a ComboBox that
allows selection of values from a Primary Key in another table. Upon
selection of the Value, I would like to populate another Text Box on the form
with a value from the other table. E.g.: By selecting CustomerID in the
Combo Box, the Text Box populates with CustomerName. Adding a normal SQL
Query to the Control Source value in the Text Box to the does not seem to
work. (E.g. (SELECT [CustomerName] from [Customer] WHERE [MyTable].[CustID]
= [Customer].[CustID]?) I do not want a parameter query that prompts for the
value when the form is opened. Is this possible?