首先再感谢2楼朋友的关注!这几天休假没有上网很抱歉。
我用下例语句实现在DataGridView上显示要查找的结果,但是不能与托拽的字段匹配(即单击DataGridView上显示要查找的结果文本字段没有反映)。
Dim MyConnection As New System.Data.OleDb.OleDbConnection(MySQLConnectionString)
MyConnection.Open()
Dim MyDepartmentTable As New System.Data.DataTable()
Dim MySQL As String = "select * from 外语学习 where (单词ike '%" & 单词olStripTextBox.Text.Trim & "%')"
Dim MyAdapter As New OleDbDataAdapter(MySQL, MyConnection)
MyAdapter.Fill(MyDepartmentTable)
Me.外语学习DataGridView.DataSource = MyDepartmentTable
If (MyConnection.State = ConnectionState.Open) Then
MyConnection.Close()
End If
所以我想用“查询标准生成器”来做,可是又不能查到结果。还请大师指点,谢谢!!
[local]1[/local]