I have a two-column combo box in an Access form representing a key-code mapping. The first column of the combo box is the “linked column” (i.e., the column used in the call MyComboBox.Value).
I need to dynamically set Valuemy combo box based on the value found in the second column. For example, if my source is with a list:
Value | Code
===============
A1 | ABCD
A2 | EFGH
A3 | IJKL
I can set the value of the combo box just with ComboBox.Value = "A2", but how would I do the same with the second column? ComboBox.Value = "EFGH"obviously wrong. Essentially, searching for logic along linesComboBox.Value = ComboBox.ValueWhereSecondColumnEquals("EFGH")
source
share