我的更新语句不起作用..当我检查它时对数据库没有影响
这是代码
conn.Open()
Try
Dim update As New OleDbCommand
update.Connection = conn
update.CommandText = " update O_name set fname = ' " & Name1.Text & " ' where ID = ' " & ID.Text & " ' "
update.ExecuteNonQuery()
MsgBox("done")
Catch ex As Exception
MsgBox(ex.Message.ToString)
End Try
conn.Close()