G
Guest
Hi,
I want to perform a simple update query on a MS Access database.
The update query itself is a stored procedure requiring a single parameter
and is called via an ASP.NET page.
The error message I'm getting is: "Operation must use an updateable query"
* The MS Access update query:
________________________
PARAMETERS ValueRight Long;
UPDATE category SET leftvalue = leftvalue+2
WHERE leftvalue>[ValueRight]-1;
* The ADO.NET code:
__________________
OleDbConnection oleDbConnection = new
OleDbConnection(this.ConnectionString);
oleDbConnection.Open();
OleDbCommand oleDbCommand = new OleDbCommand();
oleDbCommand.Connection = oleDbConnection;
oleDbCommand.CommandType = System.Data.CommandType.StoredProcedure;
oleDbCommand.CommandText = "[qryupdatecategoryLeft]";
oleDbCommand.Parameters.Add("@ValueRight", this.LabelValueRight.Text);
oleDbCommand.ExecuteNonQuery();
oleDbConnection.Close();
Any ideas ???
Thanks,
Steve.
I want to perform a simple update query on a MS Access database.
The update query itself is a stored procedure requiring a single parameter
and is called via an ASP.NET page.
The error message I'm getting is: "Operation must use an updateable query"
* The MS Access update query:
________________________
PARAMETERS ValueRight Long;
UPDATE category SET leftvalue = leftvalue+2
WHERE leftvalue>[ValueRight]-1;
* The ADO.NET code:
__________________
OleDbConnection oleDbConnection = new
OleDbConnection(this.ConnectionString);
oleDbConnection.Open();
OleDbCommand oleDbCommand = new OleDbCommand();
oleDbCommand.Connection = oleDbConnection;
oleDbCommand.CommandType = System.Data.CommandType.StoredProcedure;
oleDbCommand.CommandText = "[qryupdatecategoryLeft]";
oleDbCommand.Parameters.Add("@ValueRight", this.LabelValueRight.Text);
oleDbCommand.ExecuteNonQuery();
oleDbConnection.Close();
Any ideas ???
Thanks,
Steve.