|
-
Jun 9th, 2001, 04:25 PM
#1
Thread Starter
Lively Member
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!
-
Jun 9th, 2001, 11:28 PM
#2
Frenzied Member
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..
-
Jun 10th, 2001, 04:51 AM
#3
Thread Starter
Lively Member
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!
-
Jun 10th, 2001, 01:08 PM
#4
Frenzied Member
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..
-
Jun 10th, 2001, 05:02 PM
#5
Thread Starter
Lively Member
You are living a pacifist dream, and if you dreaming it means you sleeping and you should damn well wake up!
-
Jun 11th, 2001, 04:59 AM
#6
Make sure your directory where your MDB is located have read and write access.
-
Jun 11th, 2001, 06:14 AM
#7
Black Cat
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|