0
我使用Visual Studio 2010和MS Access 2007年語法錯誤發生在INSERT INTO查詢(MS接入)
我不能修復錯誤
調試時,「語法錯誤在插入進「發生,但SQL語法正確 我是vb.net的新手,如果有人能給我一個解決方案,我將不勝感激。
Try
Dim query As String = "INSERT INTO User([ID],[StudName],Address])VALUES('002','haerth','col')"
Dim comLib As New OleDbCommand
With comLib
.CommandText = query
.Connection = conLib
.ExecuteNonQuery()
End With
MessageBox.Show("Added Successfully")
Catch ex As OleDbException
MessageBox.Show(ex.ToString)
End Try
`