Solved

ADO get current record position

Posted on 2004-03-26
4
402 Views
Last Modified: 2008-02-01
i 'm able to write
adodb.recordset.absoluteposition...

how do i read the current position of record without using variable?
0
Comment
Question by:ill
  • 2
  • 2
4 Comments
 
LVL 11

Expert Comment

by:Slimshaneey
ID: 10685524
Please elaborate???

You can just write to the asp page by
response.write recordsetname.absoluteposition
0
 
LVL 12

Author Comment

by:ill
ID: 10685725
Set db = Server.CreateObject("ADODB.Connection")
db.Open (Session("mydb") )
Set rs = Server.CreateObject("ADODB.Recordset")
set rs= db.execute ( " select * from users")

do while not rs.eof
      response.write ( rs.absoluteposition&"<br>")   'returns -1 for all records
      rs.movenext
loop
0
 
LVL 11

Accepted Solution

by:
Slimshaneey earned 50 total points
ID: 10685740
Ah...
Stick this line in before the opening of the recordset:
db.Cursorlocation = 3
0
 
LVL 12

Author Comment

by:ill
ID: 10685840
uff, so that's it...
thanks
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now