I have a simple table that has 2 fields, one is AGENTNAME and the second is DEPARTMENT. I have a drop down to choose an agents name, how do I have a separate text box populate with their coresponding department? Can someone help me?
If your dropdown (combobox) has the rowsource set to:
SELECT AgentName, Department FROM TheTable
You can set the textbox to:
=Me.NameOfDropdownHere.Column(1)
Note that the column count starts from zero, this is not the same as the property Column Count, which should be set to 2. You can set the column widths to, say, 2cm,0cm, if you do not wish department to show in the dropdown.
Thank you that worked great! however it brings me to one more question....how can i have what is populated in the text box written back to the table for that record.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.