INSERT INTO 语句的语法错误。
INSERT INTO 语句的语法错误。
Cres = "INSERT INTO " & "runindexstructure" & "(" & DtgStructure.Columns(0).HeaderText & "," & DtgStructure.Columns(1).HeaderText & "," & DtgStructure.Columns(2).HeaderText & ") VALUES (" & DtgStructure.Rows(i).Cells(0).Value & ",'" & DtgStructure.Rows(i).Cells(1).Value.ToString & "'," & DtgStructure.Rows(i).Cells(2).Value & ")"
Dim AddTb3 As OleDbCommand = New OleDbCommand(Cres, db)
AddTb3.ExecuteNonQuery()
"INSERT INTO runindexstructure(编号,text,parent) VALUES (1,'指标体系',0)"
错误代码:-2147217900