I have a text field that I want to display the name that is chosen in a combo box (=[Combo12]). Unfortunately the text box is only displaying the number of the record in the key column. What do I have to do to have it show what is in column 2 of the combo box instead of column 1?
text box to display combo column not key column
Collapse
X
-
Tags: None
-
The combobox uses the key column to look up the correct values to place in the box. Therefore, you need to do the same thing. This is most easily done using the dlookup function like so:
syntax: DLookup(Express ion, Domain , Criteria)
Let me know if this helps.Code:=dlookup("[ColumnYouWant]","[YourTable]","[KeyColumn] = [Combo12]") -
Comment