G
Guest
try
{
OleDbCommandBuilder bldr = new OleDbCommandBuilder(da);
da.Update(tbl);
}
catch (OleDbException ex)
{
MessageBox.Show(ex.Message);
}
The above code causes the error "Syntax error in UPDATE statement." How can
command builder be building an incorrect UPDATE command?
The SELECT command in the data adapter is:
Select * from [Disc Gear Contents] where Unit=3 order by UnitIndex
and seems to work fine.
The database is an Access db.
{
OleDbCommandBuilder bldr = new OleDbCommandBuilder(da);
da.Update(tbl);
}
catch (OleDbException ex)
{
MessageBox.Show(ex.Message);
}
The above code causes the error "Syntax error in UPDATE statement." How can
command builder be building an incorrect UPDATE command?
The SELECT command in the data adapter is:
Select * from [Disc Gear Contents] where Unit=3 order by UnitIndex
and seems to work fine.
The database is an Access db.