![]() |
Sergey Kornilov admin 11/3/2011 |
Andre, |
A
|
andres author 11/4/2011 |
Andre, what error message do you get? Post full message here. Is 'Table B' the actual table name?
|
![]() |
Sergey Kornilov admin 11/4/2011 |
Andre, update Stock set Qty = Qty - 1 where Partno = 'ARG2382424004'
update Stock set Qty = Qty - 1 where Partno = ARG2382424004 |
A
|
andres author 11/7/2011 |
Andre, make sure you add single quotes around text values in SQL Query. Correct: update Stock set Qty = Qty - 1 where Partno = 'ARG2382424004'
update Stock set Qty = Qty - 1 where Partno = ARG2382424004
|
P
|
Philip 11/7/2011 |
Andre, sql ="update Stock set Qty = Qty - 1 where Partno = " & dict("Item1")
sql ="update Stock set Qty = Qty - 1 where Partno = ' " & dict("Item1") & "'"
|
A
|
andres author 11/8/2011 |
Andre, you use: sql ="update Stock set Qty = Qty - 1 where Partno = " & dict("Item1")
sql ="update Stock set Qty = Qty - 1 where Partno = ' " & dict("Item1") & "'"
|