Results 1 to 2 of 2

Thread: help deleting row

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member marniel647's Avatar
    Join Date
    Aug 2010
    Location
    MSDN Library
    Posts
    259

    Resolved help deleting row

    guys help me with this

    i put the code into button
    Code:
     Dim connect As New OleDbConnection(conString)
                connect.Open()
    
                Dim dsql As String
               
    
                dsql = "DELETE FROM InventoryItem"
                dsql = dsql & "WHERE TransactionDate = '" & TransactionDateText.Text & "'AND "
                dsql = dsql & " ItemName = '" & ItemNameText.Text & "' AND Quantity = '" & QuantityText.Text & "' AND"
                dsql = dsql & " Price = '" & PriceText.Text & "' AND Cost = '" & CostText.Text & "' AND"
                dsql = dsql & " Type = '" & InTextbox.Text & "'"
    but when i click the button it gives me an error

    the error is "Syntax Error in FROM clause"

    help me guys sorry new in vs 2008
    Last edited by marniel647; Apr 8th, 2011 at 09:20 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width