I am running the following code, in the fifth line I get an error:
"The input string does not have the correct format"
costo = Convert.ToDouble(textBox8.Text);
string fecha = DateTime.Today.ToString("dd/MM/yyyy");
OleDbCommand actualizacion = new OleDbCommand("update servicios set estado_servicio = 'Finalizado', costo = @costo, fecha_entrega = '" + fecha + "' where clave = @parametro and estado_servicio = 'Reparacion'", conexion);
actualizacion.Parameters.AddWithValue("@costo", costo);
actualizacion.Parameters.AddWithValue("@parametro", Convert.ToInt32(textBox4.Text));
actualizacion.ExecuteNonQuery();
My key field is an autonumer field *