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.OleDb.OleDbException' occurred in system.data.dll
----------------------------------------------------------------------------------------------------------------------------------------------------
CODE
Dim strSQL As String
strSQL = "UPDATE Item Master SET " & _
"Barcode = '" & txtBarcode.Text & "', Description= '"
txtItemDescription.Text & "', StandardCost= '" & txtStandardCost.Text
"', " & _
"RetailPrice= '" & txtRetailPrice.Text & "'
MinSellingPrice='" & txtMinSellingPrice.Text & "', StockQty ='"
txtStockQty.Text & "', " & _
"StockReorderLevel='" & txtStockReorder.Text & "' WHER
ItemCode = '" & txtItemCode.Text & "'"
Dim db As New OleDbCommand(strSQL, dc)
dc.Open()
db.ExecuteNonQuery()
MessageBox.Show("Record has been update successfully!", "Ite
Master", MessageBoxButtons.OK, MessageBoxIcon.Information
--
le
-----------------------------------------------------------------------
lea's Profile:
http://www.msusenet.com/member.php?userid=156
View this thread:
http://www.msusenet.com/t-187051013