Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Other Forums
 MS Access
 Creation of incrementing column in returned recordset.

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2000-12-07 : 08:39:11
RobM writes "I've been struggling with the question of how, using a single line of SQL (for MSAccess2K) (no stored procs, nothing like that, just a nice old SELECT statement), I can retrieve any jumbled set of records that match a specific criteria, and then create another column that simply increments +1 (starting at 1) for each row (ie autonumber)... To my way of thinking, I can then have this is a subquery and pull out, say, rows 10 to 20 without scanning or looping through the other 500 (50,000?) records -- a nice, quick solution to results paging. Please, if you can help, it'll hopefully speed up my pages somewhat. Thanks now, Rob."
   

- Advertisement -