I am doing a programming on visual studio.net 2003 using the Asp.net mobile Web form. I am trying to update the Microsoft access database that i have created using the statement : Update.
According to the Update Statement that i had written, It directly replaces the value in the attribute of the table. Which is not what i am looking for. here's my quote of example for a better explanation:
I have a table name : Pen
Attributes are : ItemID, Color,Quantity,ItemDetails
As such my quantity inside have 10 and when i want to order another 40, i do not want it to replace to 40. i want to replace it to show 50. As such its an addition method.
However in my Update sentence it overwrite it. Is there any other method to make it add?Thanks. Its urgent.
2007-01-07
15:38:50
·
2 answers
·
asked by
Anonymous
in
Computers & Internet
➔ Programming & Design
Well, In the Database have an initial value. so in the SQL statement , how to make it read the value in the text box and the value in the database to automatically add it together? It is because the SQL statement should be reading from the database in Microsoft access and then add on the the value in the text box. So is there any method? sub query method is it able? i am not sure how to use the SQL sub query Method even after looking at it. Is there any simpler explanation of how to use it? Thanks.
2007-01-07
18:50:31 ·
update #1