Problem When using Recordset paging

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Li

    Problem When using Recordset paging

    Hi, guys,

    I got a problem when trying to paging the recordset. the problem is
    even I set the pagesize but the first page will always show all the
    records and the number of records that shown on the second page will
    always all records number minus pagesize. for example, if I have total
    5 records and pagesize = 2, then first page will show 5 record and
    second one will show 3 and the last page will show the last one.

    any one have some idea about that condition?

    Thanks a lot!
  • Erland Sommarskog

    #2
    Re: Problem When using Recordset paging

    Li (zlusc@hotmail. com) writes:[color=blue]
    > I got a problem when trying to paging the recordset. the problem is
    > even I set the pagesize but the first page will always show all the
    > records and the number of records that shown on the second page will
    > always all records number minus pagesize. for example, if I have total
    > 5 records and pagesize = 2, then first page will show 5 record and
    > second one will show 3 and the last page will show the last one.
    >
    > any one have some idea about that condition?[/color]

    I guess you are using paging in ADO, but there are so many ways to do
    paging, that rather I would like to know. Maybe you have some code to
    share?


    --
    Erland Sommarskog, SQL Server MVP, sommar@algonet. se

    Books Online for SQL Server SP3 at
    SQL Server 2025 redefines what's possible for enterprise data. With developer-first features and integration with analytics and AI models, SQL Server 2025 accelerates AI innovation using the data you already have.

    Comment

    Working...