I
Ivan Sammut
I have the following code but I cannot get it to work. there is no problem with the database connection.
String sLabel = "Ivan"
oConn.Open();
OleDbCommand oCmd = new OleDbCommand("Update category set category.desc=@label where category.code=@code",oConn);
oCmd.Parameters.Add("@code",OleDbType.Integer);
oCmd.Parameters.Add("@label",OleDbType.Char,100);
oCmd.Parameters["@code"].Value = iTag;
oCmd.Parameters["@label"].Value = sLabel;
oCmd.ExecuteNonQuery();
Thanks
Ivan Sammut
String sLabel = "Ivan"
oConn.Open();
OleDbCommand oCmd = new OleDbCommand("Update category set category.desc=@label where category.code=@code",oConn);
oCmd.Parameters.Add("@code",OleDbType.Integer);
oCmd.Parameters.Add("@label",OleDbType.Char,100);
oCmd.Parameters["@code"].Value = iTag;
oCmd.Parameters["@label"].Value = sLabel;
oCmd.ExecuteNonQuery();
Thanks
Ivan Sammut