L
Lourenço Teodoro
I developed a program that updates the database using a DataSet. I am
testing it against an Access database. If I get the data from the database
using the SQL statement without a WHERE clause, I am able to change data in
the DataSet and use the Update command in my DataAdapter. However, when I
specify any WHERE clause, I get the following error message when I call the
update command:
OleDbCommand.Prepare method requires all parameters to have an explicitly
set type.
Below is the code that I am using to update a specific row:
tb = ds.Tables[0];
rows = tb.Rows;
rows[0][0] = "Test";
adapter.Update(ds)
ds = DataSet
tb = DataTable
rows = DataRowCollection
I would appreciate any help on this matter.
Lourenço.
testing it against an Access database. If I get the data from the database
using the SQL statement without a WHERE clause, I am able to change data in
the DataSet and use the Update command in my DataAdapter. However, when I
specify any WHERE clause, I get the following error message when I call the
update command:
OleDbCommand.Prepare method requires all parameters to have an explicitly
set type.
Below is the code that I am using to update a specific row:
tb = ds.Tables[0];
rows = tb.Rows;
rows[0][0] = "Test";
adapter.Update(ds)
ds = DataSet
tb = DataTable
rows = DataRowCollection
I would appreciate any help on this matter.
Lourenço.