/
Forside
/
Teknologi
/
Udvikling
/
ASP
/
Nyhedsindlæg
Login
Brugernavn
*
Kodeord
*
Husk mig
Brugerservice
Kom godt i gang
Bliv medlem
Seneste indlæg
Stil et spørgsmål
Skriv et tip
Pointsystemet
Kontakt Kandu.dk
Emnevisning
Kategorier
Alfabetisk
Karriere
Interesser
Teknologi
Reklame
Top 10 brugere
ASP
#
Navn
Point
1
smorch
9259
2
Harlekin
1866
3
molokyle
1040
4
Steffanst..
758
5
gibson
560
6
cumano
530
7
MouseKeep..
480
8
Random
410
9
strarup
370
10
Dysmorf
370
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
Alle emner
Teknologi
Udvikling
ASP
Indstillinger
Spørgsmål
Tips
Usenet
Reklame
Statistik
Spørgsmål :
177818
Tips :
31980
Nyheder :
719565
Indlæg :
6410968
Brugere :
218912
Månedens bedste
Årets bedste
Sidste års bedste
Copyright © 2000-2026 kandu.dk. Alle rettigheder forbeholdes.