我正在使用组合框作为选项搜索名称和用户名以及用于过滤器的文本框有错误
缺少运算符
Try
If Trim(TextBox1.Text) <> "" Then
dataadapter1 = New OleDbDataAdapter("select * form login where " & ComboBox2.Text & " like '%" & Trim$(TextBox1.Text) & "%'", conn)
datasetaccounts.Clear()
dataadapter1.Fill(datasetaccounts, "login")
DataGridView1.DataSource = datasetaccounts
DataGridView1.DataMember = "login"
DataGridView1.Refresh()
End If
Catch ex As Exception
MsgBox("Error !: " + ex.Message)
End Try