E
emde
Here is my code. It should be updating the first field in the first record
of the table. No errors occur when I run this but no data is updated either.
Any ideas?
Thanks.
System.Data.OleDb.OleDbConnection conn = new
System.Data.OleDb.OleDbConnection();
conn.ConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;" +
@"Password=pass;User ID=username;" +
@"Jet OLEDB:System database=q:\system.mdw;" +
@"Data source=q:\db.mdb";
conn.Open();
string query = "select * from table1";
OleDbDataAdapter da = new OleDbDataAdapter( query, conn );
DataSet ds = new DataSet();
da.Fill( ds );
ds.Tables[0].Rows[0].ItemArray[0] = "newvalue";
da.Update( ds );
of the table. No errors occur when I run this but no data is updated either.
Any ideas?
Thanks.
System.Data.OleDb.OleDbConnection conn = new
System.Data.OleDb.OleDbConnection();
conn.ConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;" +
@"Password=pass;User ID=username;" +
@"Jet OLEDB:System database=q:\system.mdw;" +
@"Data source=q:\db.mdb";
conn.Open();
string query = "select * from table1";
OleDbDataAdapter da = new OleDbDataAdapter( query, conn );
DataSet ds = new DataSet();
da.Fill( ds );
ds.Tables[0].Rows[0].ItemArray[0] = "newvalue";
da.Update( ds );