Solved

ADO get current record position

Posted on 2004-03-26
4
412 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
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 informatio…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

736 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