Hi,
perhaps an odd way round but this is how I have done this for years but trying to tidy a few things so no fundamental changes
combobox : ID hidden 0;
id surname name
1 Jones/B bill
2 Jones/B baxter
3 Jones/B bonnie
4 Jones/C cleo
5 Jones/C charles
I type jones/b. It auto expands & selects the first Jones/b
I press enter and updates a table showing bookings with those surnames
I select no.3 Jones/b bonnie & press enter again, to choose ready to book.
it stores the ID OK using me.surname.Column(0)
However the combo box now starts the list still with no1 as = jones/b
I can press enter and proceed to book with the correct ID that was saved
so it all works but just looks wrong as not highlighting my selection
Basically is there a way to automatically move & highlight no.3 on the combo box. Can you select based on the hidden ID. You can set the .value but this is again for the ambiguous jones/b
I could change the source of the combo but would prefer not too so I can see those around BUT also I find as it matches & higlights no.1 it complicates things. Hard to explain & tried dozens of things
The list in 10,000 long so not even considered looping through and somehow matching with Me.surname.ItemData(x)
I don't think I have made this very clear.
perhaps an odd way round but this is how I have done this for years but trying to tidy a few things so no fundamental changes
combobox : ID hidden 0;
id surname name
1 Jones/B bill
2 Jones/B baxter
3 Jones/B bonnie
4 Jones/C cleo
5 Jones/C charles
I type jones/b. It auto expands & selects the first Jones/b
I press enter and updates a table showing bookings with those surnames
I select no.3 Jones/b bonnie & press enter again, to choose ready to book.
it stores the ID OK using me.surname.Column(0)
However the combo box now starts the list still with no1 as = jones/b
I can press enter and proceed to book with the correct ID that was saved
so it all works but just looks wrong as not highlighting my selection
Basically is there a way to automatically move & highlight no.3 on the combo box. Can you select based on the hidden ID. You can set the .value but this is again for the ambiguous jones/b
I could change the source of the combo but would prefer not too so I can see those around BUT also I find as it matches & higlights no.1 it complicates things. Hard to explain & tried dozens of things
The list in 10,000 long so not even considered looping through and somehow matching with Me.surname.ItemData(x)
I don't think I have made this very clear.