Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 25th, 2004, 10:37 AM
Authorized User
 
Join Date: Nov 2003
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Default objRS.MoveLast

Hi,
Im using a stored proc to select data from a table. I want to select up to the last five records that the stored proc creates. However ive tried using the objRS.MoveLast method but get the error:
Rowset does not support fetching backward.

Is this because im using s stored procedure? and if so would this method work using an sql statement instead/ how can i do this using a stored proc?

many thanks

 
Old February 25th, 2004, 10:52 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

Its probably because you're using the default ForwardOnly cursor. Maybe you should change to use another type such as a static cursor. Alternatively why can't you just amend the stored proc so you only get back the 5 records you want?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Random record from objRS - why is EOF or BOF True? jfrizelle Classic ASP Databases 0 February 5th, 2008 07:24 AM
objRS.Filter (Multiple Field Filters) egerdj Classic ASP Basics 1 March 10th, 2004 04:48 PM
problem with objRS.Open syntax thisistoday Classic ASP Basics 1 August 5th, 2003 09:17 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.