ADO get current record position

Posted on 2004-03-26
Last Modified: 2008-02-01
i 'm able to write

how do i read the current position of record without using variable?
Question by:ill
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
LVL 11

Expert Comment

ID: 10685524
Please elaborate???

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

Author Comment

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
LVL 11

Accepted Solution

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

Author Comment

ID: 10685840
uff, so that's it...

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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…
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor ( Top Charts is a view in which you can set seve…

691 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