|
-
Sep 28th, 2000, 05:02 PM
#1
Hi there, I've been pullin my hair for the last couple of days trying to update my Access database.
I can read from it no problem but for some reason my ASP page won't write to it, but instead keeps giving me error codes. Here's what I did:
<%
set DBObj = server.createobject("ADODB.connection")
DBObj.open "TaskManager", adOpenKeyset
DBObj.execute("UPDATE Calendar SET Dat = 2 WHERE Jour = Monday1 )
%>
I keep getting the error: 'Too few parameters' on the execute query line. I've tried so many different combination with no success. My system dsn is properly set since I can read with no problem...... I'm starting to loose it here. Please help.
-
Sep 28th, 2000, 07:21 PM
#2
Frenzied Member
I think I answered this for you in another thread, but don't put the () around the query- if you do, you have to assign it to something. This query returns nothing so do this:
Code:
DBObj.execute "UPDATE Calendar SET Dat = 2 WHERE Jour = 'Monday1'"
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..
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
|