CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 1999
    Posts
    41

    Update SQL statement - HELP!!

    Hi

    Can someone point out what the syntax error is in the following SQL statement

    SQL1 = "Update USER_DTLS Set (User_Name, Full_Name, User_Pwd, User_Description)=('" & Uname & "','" & Fname & "','" & Pwd & "','" & Udescrpt & "') where User_Name ='" & Uname & "'"

    When it come's to the cmd execution it saya there's a syntax error

    Thanks for your help
    Viji


  2. #2
    Join Date
    Dec 1999
    Location
    Dublin, Ireland
    Posts
    1,173

    Re: Update SQL statement - HELP!!

    Try:


    SQL1 = "Update USER_DTLS set User_Name = '" & uname & _
    "', Full_Name = '" & fname & _
    "', User_Pwd = '" & pwd & _
    "', User_Description = '" & Udescrpt & _
    "' where User_Name ='" & Uname & "'"





    HTH,
    Duncan

    -------------------------------------------------
    Ex. Datis: Duncan Jones
    Merrion Computing Ltd
    http://www.merrioncomputing.com
    '--8<-----------------------------------------
    NEW -The printer usage monitoring application
    '--8<------------------------------------------

  3. #3
    Join Date
    May 2001
    Location
    UK
    Posts
    2

    Re: Update SQL statement - HELP!!

    Hi Viji (at BJA ??)

    If you have not got the answer to this yet. I can see the problem.

    Martin

    Thanks
    Martin Clark

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

Featured