i got this error msg while i trying to run the UPDATE query.there is n
underlying..
ERROR MSG :An unhandled exception of typ
'System.Data.Ol eDb.OleDbExcept ion' occurred in system.data.dll
----------------------------------------------------------------------------------------------------------------------------------------------------
CODE
Dim strSQL As String
strSQL = "UPDATE Item Master SET " & _
"Barcode = '" & txtBarcode.Text & "', Description= '"
txtItemDescript ion.Text & "', StandardCost= '" & txtStandardCost .Text
"', " & _
"RetailPric e= '" & txtRetailPrice. Text & "'
MinSellingPrice ='" & txtMinSellingPr ice.Text & "', StockQty ='"
txtStockQty.Tex t & "', " & _
"StockReorderLe vel='" & txtStockReorder .Text & "' WHER
ItemCode = '" & txtItemCode.Tex t & "'"
Dim db As New OleDbCommand(st rSQL, dc)
dc.Open()
db.ExecuteNonQu ery()
MessageBox.Show ("Record has been update successfully!", "Ite
Master", MessageBoxButto ns.OK, MessageBoxIcon. Information
--
le
-----------------------------------------------------------------------
lea's Profile: http://www.msusenet.com/member.php?userid=156
View this thread: http://www.msusenet.com/t-187051013
Comment