Ok, so I have no problem loading my ComboBoxes with data from my database and assigning it the correct ValueMember, but I need to concatenate “user_last_name” & “, ” & “user_first_name” so it displays better information than just a username. Hopefully this is just a simple fix, I
Private Sub loadMemberName()
Dim memberSELECTSQLString As String =
"SELECT * FROM user_tbl"
Dim da As New OleDbDataAdapter(memberSELECTSQLString, conn)
Dim ds As New DataSet
da.Fill(ds, "user_tbl")
With memberComboBox
.DataSource = ds.Tables("user_tbl")
.DisplayMember = "user_username"
.ValueMember = "user_id"
.SelectedValue = -1
End With
End Sub
Any help would be greatly appreciated!
Concatenate it in your sql and send back the alias, then reference the alias in your combo box