Results 1 to 7 of 7

Thread: another shocker error: Updatable query required

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2000
    Location
    South Africa
    Posts
    113

    another shocker error: Updatable query required

    Hi all,
    I have a terrible error.
    I put up a web site using ASP and it worked fine initially. Then one day I get an error that says an UPDATABLE query is required whenever an update query is written in my code.

    The sql query is definiately correct and it workd off my local PC and personal web server.

    anyone ever experienced this before?

    It happens on every single update query
    eg

    sqlq = "UPDATE thread set showme = FALSE where threadID " &
    indexStr
    OBJdbConnection.Execute(SQLq)

    ...and then i get the error...bizarre
    You are living a pacifist dream, and if you dreaming it means you sleeping and you should damn well wake up!

  2. #2
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    Change this:
    OBJdbConnection.Execute(SQLq)

    to this:
    OBJdbConnection.Execute SQLq

    Use the parenthesis only when you are returning something (like in this case a recordset). VB isn't as picky about this but VBScript is. VBScript will only allow you to use parenthesis in a sub call if you use the Call keyword.
    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..

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Aug 2000
    Location
    South Africa
    Posts
    113

    Thumbs up Thanks I'll try that but...

    do u have any idea how come it worked initially even with the brackets. Also on my PC using Personal Web Server there seems to be no problemo. any ideas as to why?
    You are living a pacifist dream, and if you dreaming it means you sleeping and you should damn well wake up!

  4. #4
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    Did you perhaps have an 'On Error Resume Next' statement on the page? Dunno why it initially worked..
    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..

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Aug 2000
    Location
    South Africa
    Posts
    113

    nope

    no on error resume
    You are living a pacifist dream, and if you dreaming it means you sleeping and you should damn well wake up!

  6. #6
    kayoca
    Guest
    Make sure your directory where your MDB is located have read and write access.

  7. #7
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    Use the parenthesis only when you are returning something (like in this case a recordset). VB isn't as picky about this but VBScript is. VBScript will only allow you to use parenthesis in a sub call if you use the Call keyword.
    Isn't it the opposite, though? VB is picky but VBscript doesn't care.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

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