Hi I have a question about the Combo Box
This is the only Code I have seemed to be able to find to add items to a Combo Box... Is there a way to modify it or another command that I could use to have my own index or value inserted, but display the text NewField
- Me.evSelectName.Items.Add("NewField")
So that when the click 'NewField' the value stored/read would equal something else?
Thanks in advance!
combobox1.list = Array
will add an array to your combo box
combobox1.additem ("newfield")
will add an item
if you want to know the index of the item you have selected use combobox1.listindex
lets say you want a msgbox that shows the item you've selected this could work:
msgbox combobox1.list(combobox1.listindex)
HTH