I have a form and want to display a value in a text box that depends on the value selected in a combobox.
This value can be found from a query, using the combobox entry.
Can anyone advise me on how to do this?
This should work if the Query returns 1 record as the Result:
Me!TheControlName = DLookup("[QueryFieldName]", "TheQueryName"
Or this is how to set a Criteria if necessary on the Result:
Me!TheControlName = DLookup("[QueryFieldName]", "TheQueryName", "[QueryFieldName] = " & Me!ComboBoxName)
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.