theodordem
New member
- Joined
- Feb 20, 2010
- Messages
- 1
- Programming Experience
- 5-10
I have a DataSet that loads a table from SQL server (e.g table Products). From the form designer I choose a textbox and from its properties I go to (DataBindings) -> (Advanced) and choose for Binding a Column of the Products (e.g Products.Code). The Products.Code is a primary key so I need it in order to perform the command
UPDATE TABLE Products
SET Code = "New Value"
WHERE Code = "Old Value".
The "New Value" would be new value entered in the textbox. The problem is the "old value": How do I get the "old value" from the DataSet ?
UPDATE TABLE Products
SET Code = "New Value"
WHERE Code = "Old Value".
The "New Value" would be new value entered in the textbox. The problem is the "old value": How do I get the "old value" from the DataSet ?