/ Forside / Teknologi / Udvikling / ASP / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
ASP
#NavnPoint
smorch 9259
Harlekin 1866
molokyle 1040
Steffanst.. 758
gandalf 657
smilly 564
gibson 560
cumano 530
MouseKeep.. 480
10  Random 410
Either BOF or EOF is True, or the current ~
Fra : Baron


Dato : 13-04-03 22:18

Hi, I have a problem with an asp script for a shopping cart and i
receive following error:

Error Type:
ADODB.Field (0x80020009)
Either BOF or EOF is True, or the current record has been deleted.
Requested operation requires a current record.

This error is caused by following code:

--------------------------------------------------------
sqlPid = "SELECT * FROM Kar WHERE Kar_user_id =" & uid

pidRS.Open sqlPid
If pidRS.EOF then
   response.write ("No records found")
else
   While NOT pidRS.EOF

   IF uid = pidRS( "Kar_user_id" ) and pid = pidRS( "Kar_kleding_id" )
and prid = pidRS( "Kar_leeftijd_id" ) Then
      kleding_id = pidRS( "Kar_kleding_id" )
      leeftijd_id = pidRS( "Kar_leeftijd_id" )
   End If   

   pidRS.Movenext
   WEND
end if

--------------------------------------------------------

I don't understand why he gives this error cause if i run only the
following code it returns a field of the record that is in the
recordset so the pidRS can't be EOF.

-----------------
sqlPid = "SELECT * FROM Kar"
sqlPid = sqlPid & " WHERE Kar_user_id = 6 "


pidRS.Open sqlPid

response.write (pidRS( "Kar_user_id" ))
-----------------

Could anyone help me plz?

Thx

 
 
Søg
Reklame
Statistik
Spørgsmål : 177560
Tips : 31968
Nyheder : 719565
Indlæg : 6408946
Brugere : 218888

Månedens bedste
Årets bedste
Sidste års bedste