Original Post
When I try to update my MSAccess database using the code below, I get the following error: System.Data.OleDb.OleDbException: No value given for one or more required parameters As near as I can tell the code is correct and the UPDATE command is what it should be. Also, the table name is Manufacturer and the field name is Manufacturer. I thought that might be the issue but changing either makes no difference. Edit_TB_Man is a text box (yes, I'm doing checking for quotes and whatnot). GarbageNum is an INT that has the correct number for the record to be updated. Any ideas what I'm doing wrong?
OleDbCommand DeviceDB_Command = new OleDbCommand();
DeviceDB_Command.CommandType = CommandType.Text;
DeviceDB_Command.CommandText = "UPDATE Manufacturer SET Manufacturer = '" + Edit_TB_Man.Text + "' WHERE Garbage-Index = " + GarbageNum;
DeviceDB_Command.Connection = DeviceDB_Connection;
DeviceDB_Connection.Open();
LinesUpdated = DeviceDB_Command.ExecuteNonQuery();
DeviceDB_Connection.Close();