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