2
我在这段代码的form子句中出现语法错误,任何人都可以帮忙吗?谢谢:)FROM子句Da.fill中的语法错误?
Dim sql As String
Dim con As New OleDb.OleDbConnection
Dim da As OleDb.OleDbDataAdapter
Dim ds As New DataSet
con.ConnectionString = "PROVIDER = Microsoft.Jet.OLEDB.4.0; Data Source = G:\school\Thespellingbee\Resources\Spelling Bee1.mdb"
con.Open()
sql = "SELECT * FROM Words + Definitions"
da = New OleDb.OleDbDataAdapter(sql, con)
da.Fill(ds, "Words + Definitions")
con.Close()
Dim cb As New OleDb.OleDbCommandBuilder(da) stored data adapter in the variable cb
WordTextBox.Text = ds.Tables("Words + Definitions").Rows(0).Item(2)
DescriptionTextBox.Text = ds.Tables("Words + Definitions").Rows(0).Item(3)
da.Update(ds, "Words + Definitions")
MsgBox("It's working", MessageBoxButtons.OK)
这是我试图更新使用数据集和适配器的数据库,即时通讯仍然相当新的到v基本正如我刚才开始在A级学习它。
单词+定义,什么是单词和定义? – Miller