Question. I’m trying to use SQL to update a listview in C#. Using the Query Builder I can do a select, update, insert and delete. Ive got my select but I’m trying to get my update to work with no luck.( I want to use the update button on the listview to update the record) I need some insight as I think I’m writing it wrong. Thanks
UPDATE SF1411 SET ( ItemNumber, QuoteNumber, Item, Descp, Route, Unit, QTYOH, EXTQTY, CSTCD, PCOST, SCOST, ACOST, TCOST, ICOST, Date, BIZCODE, DeleteItem) = SELECT [ItemNumber], [QuoteNumber], [Item], [Descp], [Route], [Unit], [QTYOH], [EXTQTY], [CSTCD], [PCOST], [SCOST], [ACSOT], [TCOST], [ICOST], [Date], [BIZCODE], [DeleteItem] FROM [SF1411] WHERE ([QuoteNumber] = @QuoteNumber)
Advertisement
Answer
If I am correct your update command is wrong.
you need to tell value of each column rather than just fire a select command.