This code will update every record with the same value,
You need to identify the record you want updated, usually there is a PrimaryKeyCode:"UPDATE adjAssembly " & "SET colAmount=@amount,colUnit=@unit"
But if you are using a DataAdapter to retrieve the data then it would be easier to us the DataAdapter Update method.Code:"UPDATE adjAssembly " & "SET colAmount=@amount,colUnit=@unit WHERE yourIdField= @IdParam"




Reply With Quote
