好的,所以我可以毫无问题地从我的数据库中加载我的 ComboBoxes 并为其分配正确的 ValueMember,但我需要连接“user_last_name”和“、”和“user_first_name”,以便它显示比用户名更好的信息。希望这只是一个简单的修复,我
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
任何帮助将不胜感激!