With EE help I have managed to get a working Combo Box that loads sales reps using the code attached.
I want to capture the UserID (which is the ValueMember) in the combo box as a long integer so I can use it for filter a list view. But with what I have so far, my cboSalesRep.ValueMember is null. So I am missing something.
THANKS FOR ANY HELP.
Private Sub cboSalesRep_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cboSalesRep.SelectedIndexChanged
'Set the Public variable to the Combo Box Value
lngSelectedSalesRepID = CLng(Me.cboSalesRep.SelectedValue)