computermat
Active member
- Joined
- Jun 17, 2007
- Messages
- 28
- Programming Experience
- Beginner
Hi, im writing an application and have hit a snag with SQL. This is probably a noob question but how do you use the UPDATE function to save data to the database. I have tried adding data to my database in a deployed application but the data does not get committed. I am using a binding navigator with the stanard add new record button but when I close the app the data is lost. Am i on the right lines with the following code.
If im barking up the wrong tree here can someone point me in the right direction.
VB.NET:
UPDATE Customers
SET
Title = @title,
Initial = @int,
Surname = @surname,
[House No] = @house,
[Street Name] = @street,
[Address Line 2] = @add2,
Town = @town,
County = @county,
[Post Code] = @post,
Telephone = @phone,
WHERE ([Customer ID] = @customerID)
If im barking up the wrong tree here can someone point me in the right direction.
Last edited: