I want to simply select a row in a combo box based on a string value, not an index location.
I have a combo box with 3 columns, first column is an ID field, the other two are first name and last name respectively.
I have the ID field value ready when the box is ready, but do not know how to select it without making a stupid loop that checks each value one at a time.
For both bound and unbound comboboxes, you can set the value to anything that matches the bound column and the appropriate line will be displayed.
To set the combo:
The surname from a record with ID 21 will be displayed in the combo.
To programmatically set the combo to one of the columns, you can use DlookUp for combos based on tables: