tengo esto:
kiero insertar en una BD de access pero me salen unos errores ke puse mas abajo, ke tengo mal? o mas bien, como le hago?
Dim cnn As OleDb.OleDbConnection
Dim cmd As OleDb.OleDbCommand
Dim sql As String
cnn = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("prueba.mdb") & ";")
sql = "INSERT INTO Mensaje (nombre, mensaje, fecha) VALUES ( '" & txt_nombre.Text & "', '" & txt_mensaje.Text & "' , '" & DateTime.Now & "' )"
cmd = New OleDb.OleDbCommand(sql, cnn)
cnn.Open()
cmd.ExecuteNonQuery()
cnn.Close()
me marca un error en
cmd.ExecuteNonQuery()
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.OleDb.OleDbException: Operation must use an updateable query.


