0

我正在使用 Visual Studio 2010 和 MS Access 2007

我无法修复错误

调试时,发生“插入中的语法错误”但 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

`

4

1 回答 1

2

你有一个括号不匹配:地址]

于 2013-07-27T17:52:40.660 回答