Results 1 to 3 of 3

Thread: silly error in .addnew and .update

  1. #1

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

    Question silly error in .addnew and .update

    anyone able to help here...is this correct?
    PHP Code:
    set rs server.CreateObject("ADODB.recordset")
    rs.Open "event"conn33
    rs
    .AddNew
    rs
    ("primarykey") = npk
    rs
    ("eventNam") = Request.Form("cEventName")
    rs.Update
    rs
    .Close 
    i get the following error

    Error Type:
    Microsoft OLE DB Provider for ODBC Drivers (0x80040E2F)
    [Microsoft][ODBC Microsoft Access Driver]Error in row
    /admin/adminevent.asp, line 145
    You are living a pacifist dream, and if you dreaming it means you sleeping and you should damn well wake up!

  2. #2

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

    should be...

    rs.close on the last line. ---> just a typ not part of my error...any help???
    <code>
    s
    </code>
    You are living a pacifist dream, and if you dreaming it means you sleeping and you should damn well wake up!

  3. #3

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

    anyone???

    still not working...help!
    You are living a pacifist dream, and if you dreaming it means you sleeping and you should damn well wake up!

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