Home | Advertising Info95 USERS CURRENTLY ONLINE   
   Site Search Contact Us Friday, March 14, 2025  
 
 


 
ASPProtect
User Management Application with web based screens that allow you to manage users.
www.ASPProtect.com
 
ASPBanner
Banner Rotation system. Advertisers can monitor online statistical reports via their web browsers.
www.ASPBanner.com
 
ASP Photo Gallery
Upload an unlimited amount of albums. Set up categories.Image resizing thumbnail creation.
www.ASPPhotoGallery.com
 
ASPClassifieds
Classifieds system. Set up categories. Users can register themselves. Supports picture uploads.
www.ASPClassifieds.com



DISCUSSION ARCHIVES
 



We didn't realize
the site was so popular.

Other Stuff
 

 
 
Active Server Pages ASP programs help tutorial tutorials routine routines jobs listserve mailinglist bulletin board bulletin boards programming snippet snippets CJWSoft ASPProtect ASPBanner ASPClassifieds



(Advanced)  (Components)  (Database)  (General)  (Vbscript)




ASPProtect

 
Subject: accessing the last record in a recordset
From: Mark Minneman
Date: 12/29/1999 9:41:21 AM
IP: 216.28.40.147



 

I have a database that I am connecting to via ODBC and am able to scroll through the table that I am interested in and display all of the records using my ASP script. What I really want to do, though, is display only the last record.

I have tried multiple methods to access the last record, all of which have failed.
1. I tried looping to the last record. This ran me over the end of the recordset and there was no data to display.
2. I tried to use <recordset>.MovePrevious to get back to the last record from EOF. That function call was not supported.
3. I tried to use <recordset>.MoveLast to get to the last record. That function call was not supported.

Is there any way to loop to the last record without hitting EOF?

Or is there any way to modify the WHERE clause in the SELECT statement to return only the last record (there is a column "recordID" that has a unique integer value which is incremented with each new record added).

Thanks in advance for any help you may be able to provide.

Mark

Follow Up - Re: accessing the last record in a recordset - Tim 1/5/2000 8:03:53 AM

Follow Up - Re: accessing the last record in a recordset - Ricardo Londe 1/5/2000 10:53:19 AM


 

   Active Server Pages Rule The World
Contact Us  
All artwork, design & content contained in this site are Copyright © 1998 - 2025 PowerASP.com and Christopher J. Williams
Banner ads ,other site logos, etc are copyright of their respective companies.
STATS Unless otherwise noted - All Rights Reserved.

vbscript active server pages ASP vbscript SQL database informix oracle SQL Server Perl CGI Delphi PHP source code code sample samples program CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspclassifieds.com, www.powerasp.com,www.cjwsoft.com,www.aspphotogallery.com,www.codewanker.com,www.aspprotect.com,www.aspbanner.com