I am trying to read and set the value of an item in a combo box.
when flicking through the dataset the SelectedValue is always nothing
However the text returns the current value.
I want to set and retrieve the SelectedValue (StaffID), how can I do that ?
OnLoad init combo box:
' No problem there the list comes up perfectly
.DataSource = Me.bsStaffList
.ValueMember = "staffID"
.DisplayMember = "name"
.... ON databound positionchanged:
' Set Combo text value. (Since I cannot SET the ID value ??)
Me.ipCbCSO.Text = txtCSOname.Text
' This works fine.
Debug.Print("******** >>>>" & Me.ipCbCSO.Text)
' Returns nothing
Debug.Print("******** ======>>>>" & ipCbCSO.SelectedValue)