I have a combobox with a few items having itemdata, basically i use the itemdata to do some checks, also the combobox text is loaded from another form
cbo(cbo_start).text = frm1.txt(0).text
now I have a condition which says if cbo(cbo_start).itemdata(cbo(cbo_start).listindex) > 0 then do something
but if I set the text I get listindex = -1, is there any way I can get the listindex as the listindex of the selected item???
cbo(cbo_start).text = frm1.txt(0).text
now I have a condition which says if cbo(cbo_start).itemdata(cbo(cbo_start).listindex) > 0 then do something
but if I set the text I get listindex = -1, is there any way I can get the listindex as the listindex of the selected item???