/ 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
record.moveprevious
Fra : Kent Inge Jarling


Dato : 20-02-01 08:59

can anyone please tell me why I get the following error: "Operation is not
allowed in this context." when doing a "record.MovePrevious" in a recordset.
the recordset is opened in the following way: "Rs.Open "DRIVER={Microsoft
Access Driver (*.mdb)};" & DBPath,adOpenStatic"

-Kent



 
 
Rasmus C (22-02-2001)
Kommentar
Fra : Rasmus C


Dato : 22-02-01 10:40

It is because of the way the recordset is opened. It is MoveForvardOnly.

I have had the same problem, and I could not solve the problem with MS SQL
server, so I think it's the same with access.

Maybe you could put the current record in a session variabel and check the
next record before you print the session variabel. That way you solve moving
previus once....


Rasmus

> can anyone please tell me why I get the following error: "Operation is not
> allowed in this context." when doing a "record.MovePrevious" in a
recordset.
> the recordset is opened in the following way: "Rs.Open "DRIVER={Microsoft
> Access Driver (*.mdb)};" & DBPath,adOpenStatic"
>
> -Kent
>
>



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

Månedens bedste
Årets bedste
Sidste års bedste