Results 1 to 2 of 2

Thread: using the UPDATE sql statement with Access Databse

  1. #1
    Guest

    Angry

    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.


  2. #2
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    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
  •  



Click Here to Expand Forum to Full Width