/
Forside
/
Teknologi
/
Udvikling
/
ASP
/
Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn
*
Kodeord
*
Husk mig
Brugerservice
Kom godt i gang
Bliv medlem
Seneste indlæg
Find en bruger
Stil et spørgsmål
Skriv et tip
Fortæl en ven
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
gandalf
657
6
smilly
564
7
gibson
560
8
cumano
530
9
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
Alle emner
Teknologi
Udvikling
ASP
Indstillinger
Spørgsmål
Tips
Usenet
Reklame
Statistik
Spørgsmål :
177560
Tips :
31968
Nyheder :
719565
Indlæg :
6408946
Brugere :
218888
Månedens bedste
Årets bedste
Sidste års bedste
Copyright © 2000-2024 kandu.dk. Alle rettigheder forbeholdes.