Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
ilimax
Posting Yak Master
164 Posts |
Posted - 2005-11-16 : 09:25:34
|
I am trying to update quantity in stock with variable. Unfortunatelly, there is an error and does not work. Does anbody have idea whY?sql = "UPDATE Inventory SET [Quantity in Stock] =(([[Quantity in Stock])-(" & d & ")) WHERE [Item Number]='" & s & "'"myConi.ExecuteNonQuery(sql, CommandType.Text) Ilimax |
|
spirit1
Cybernetic Yak Master
11752 Posts |
Posted - 2005-11-16 : 10:32:09
|
"UPDATE Inventory SET [Quantity in Stock] = [Quantity in Stock] - " & d & " WHERE [Item Number]='" & s & "'"Go with the flow & have fun! Else fight the flow |
|
|
|
|
|