Results 1 to 6 of 6

Thread: UPDATE sql

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2001
    Location
    KL Malaysia
    Posts
    64

    UPDATE sql

    If I say
    Code:
    strSQL = "UPDATE Users SET Course = " & intNewID & " WHERE Course = " & intOldID
    but it does not execute correctly. It does not give me any error whatsoever but it doesn't work. What's wrong?

  2. #2
    Fanatic Member
    Join Date
    Oct 1999
    Location
    England
    Posts
    982
    This may seem a silly question but the Course field is not a key field is it.

    When you say it does not work does nothing at all happen or does something unexpected happen.


    Things I do when I am bored: DotNetable

  3. #3
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    It would be helpful if you post the error text as well..
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

  4. #4
    Lively Member
    Join Date
    Jan 2001
    Location
    india
    Posts
    109

    did you execute?

    Hey did you executed the stated in the ADO connection



    aniz
    I respect love and lovers ,but it should be possesive .
    I love friendship and friends but it should be true.

  5. #5
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    Sorry, I read your post wrong..

    Post the code you are using to execute the query.
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

  6. #6
    Fanatic Member
    Join Date
    Oct 1999
    Location
    England
    Posts
    982
    Let me put it this way.

    When you do execute the command what exactly does happen and can you post some extra code to demonstrate how and when the code is being executed.


    Things I do when I am bored: DotNetable

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