[SQL/ASP] updaten van een record

Pagina: 1
Acties:

  • ArjanC
  • Registratie: Juli 2001
  • Laatst online: 26-01 17:16
hoi, ik word hier echt helemaal gek van :

Error Type:
ADODB.Recordset (0x800A0CC1)
Item cannot be found in the collection corresponding to the requested name or ordinal.
/newuser/mailsent.asp, line 22

de code is :
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
sessieID = Request.QueryString("sessieID")

Response.Write(sessieID)

set recordset = server.CreateObject("ADODB.recordset")
strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath(Application("vroot") & "database\newuser.mdb")
SqlText = "Select * from Tblnewuser where sessieID='" & SessieID &"'"
recordset.open sqltext,strconn,1,2

gelukt = "mail sent"

Recordset.AddNew
Recordset("mainsent") = gelukt
Recordset.update

Response.Write("<BR>" & sqltext)


recordset.Close
set recordset=Nothing

Response.Write("<BR>" & strSQL)

Wat doe ik fout ? SessieID staat in de DB, en mailsent bestaat ook..

als ik met response.write de SQLtext opvraag is hij helemaal Goed :(

  • raptorix
  • Registratie: Februari 2000
  • Laatst online: 17-02-2022
Zeer waarschijnlijk komt de naam sessieID niet in de recordset voor

  • ArjanC
  • Registratie: Juli 2001
  • Laatst online: 26-01 17:16
jawel,

ook die is goed,.

  • ArjanC
  • Registratie: Juli 2001
  • Laatst online: 26-01 17:16
GVD, ik heb m al, Mainsent met zijn Mailsent :)

thanks anyway