I have a problem with a MSForms combobox which I have created on a userform. The form contains details of an object, and the combobox is populated with a list from a database, and has 2 columns – the first contains the ID (this is the BoundColumn, and hidden when the user views it), the second the description, as follows :
ID Description
— ————-
6 Gas Asia
3 Global Oil Americas
2 Global Oil EH
1 Global Oil Europe
5 GTEL
4 NAGP
7 Not Known
I create a new record, and save it with an ID of 1 (Global Oil Europe).
The problem I have is that when I want to load the saved object record in the form, I cannot set the ComboBox to show the correct value. I cannot use the Value setting, because the ID column is hidden, and I cannot use ListIndex either as setting it to 1 gives me Global Oil Americas.
There must be a way round this, but I cannot work out what it is.
Any help gratefully received
Bodders