Results 1 to 4 of 4

Thread: What is WRONG with this UPDATE statement?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 1999
    Location
    Austin,TX,USA
    Posts
    98
    ARRGH!! This UPDATE statement:

    cnn1.Execute "UPDATE UserID SET UserName = Null WHERE UserNumber = " & UserNum, , adExecuteNoRecords

    WON'T work(ie it DOES NOT change the UserName field to Null). I've got the field setup as a text field in the A2K table(UserID with only 2 fields: UserNumber(Primary Key) and UserName). Does ANYONE have a clue as to WHY this won't work?? Thanks for ANY help!

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Feb 1999
    Location
    Austin,TX,USA
    Posts
    98

    More Info

    I'm getting "Run-Time Error 2147467259, Operation must use an updateable query"??? What the #(*$)# does THAT mean? I've Never seen that error before-could there be something messed up in the A2K database I'm using? Please help!!

  3. #3
    Lively Member
    Join Date
    Aug 2000
    Location
    Singapore
    Posts
    108
    Try

    cnn1.execute("Update A2K SET UserName = null WHERE UserNumber = " & UserNum")

    Hope it helps.

    Regards.

    KT

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Feb 1999
    Location
    Austin,TX,USA
    Posts
    98
    THanks! That was CLOSE to what was wrong, appreciate it!

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