Results 1 to 3 of 3

Thread: incorrect syntsx near 'set' (resolve)

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2004
    Posts
    908

    incorrect syntsx near 'set' (resolve)

    Code:
     objCmd.CommandText = " UPDATE DataBase_T " & _
                        " SET Description = ' " & txtD1.Text & " ' , " &  _
                        " SET Qty = ' " & txtQ1.Text & " ' , " & _
                        " SET Unit_Cost = ' " & txtUC1.Text & " '  " &  _
                        " WHERE Description = ' " & describe & " ' and Qty = ' " & qty1 & " ' and Unit_Cost = ' " & uc & " ' and PR_NO = ' " & Label15.Caption & " '  "
     objCmd.CommandType = adCmdText
    objcmd.Execute
    wat could go wrong?
    Last edited by Goh; Feb 17th, 2004 at 03:58 AM.

  2. #2

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2004
    Posts
    908
    sorrie i mispost...there is this underscore after the 'update' statement

  3. #3
    Frenzied Member Lightning's Avatar
    Join Date
    Oct 2002
    Location
    Eygelshoven
    Posts
    1,611
    You can leave all the set, only the first is nessesery
    VB6 & C# (WCF LINQ) mostly


    If you need help with a WPF/WCF question post in the NEW WPF & WCF forum and we will try help the best we can

    My site

    My blog, couding troubles and solutions

    Free online tools

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