This is my sql statement:
stsql = "SELECT CO_NUMBER as CoNumber,CO_LN_NO as Line,COMP_WC as Parent,COMP_WC as Item, " & _
"ITEM_DESC as ItemDesc,QUANTITY as AuthorizedQuantity, COMP_PRICE as ListPrice, QUANTITY as OriginalQuantity FROM " & strKnzFSDataSQLPath & "FSExtract_HCPCFG WHERE CO_NUMBER = '" & _
txtWGSCONumber.Text & "'"
This works fine if I copy from the debug window and pasted into sql query analyzer. When run in VB app it gives me the error.
Any help would be appreciated.
stsql = "SELECT CO_NUMBER as CoNumber,CO_LN_NO as Line,COMP_WC as Parent,COMP_WC as Item, " & _
"ITEM_DESC as ItemDesc,QUANTITY as AuthorizedQuantity, COMP_PRICE as ListPrice, QUANTITY as OriginalQuantity FROM " & strKnzFSDataSQLPath & "FSExtract_HCPCFG WHERE CO_NUMBER = '" & _
txtWGSCONumber.Text & "'"
This works fine if I copy from the debug window and pasted into sql query analyzer. When run in VB app it gives me the error.
Any help would be appreciated.