Re: How to retrieve rows from position n to position m from table in Access 2003



Hi, Orgil.

Here is another way to display rows #21 through #30, and it will run faster
than my earlier suggestion. That may not be noticeable with a small data
set, but with a large one, efficiency counts.

SELECT TOP 10 R1.*
FROM Notes AS R1 LEFT JOIN
(SELECT TOP 20 *
FROM Notes
ORDER BY ID) AS R2 ON R1.ID = R2.ID
WHERE (ISNULL(R2.Stuff))
ORDER BY R1.ID;

.. . . where Stuff is the name of a column in the Notes table.

HTH.
Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips and tutorials.
Blogs: www.DataDevilDog.BlogSpot.com, www.DatabaseTips.BlogSpot.com
http://www.Access.QBuilt.com/html/expert_contributors2.html for contact
info.


.



Relevant Pages

  • Re: IDE Suggestions
    ... suggestion that happens to involve spending a substantial chunk of ... The fact that someone makes money if the suggestion is ... consensus that the unfree thing suggested is superior. ... Tutorials is another area to be ...
    (comp.lang.java.programmer)
  • Re: A Modest Proposal...
    ... Now we're far too large to satisfy all the needs of an simple open ... Setting up these blogs is not so hard, ... to the end users of this group and feeds into the personal emotions ... my take on this suggestion. ...
    (alt.support.chronic-pain)
  • Re: Id RTFM if they actually GAVE me a FM!!
    ... >> documentation, and that's quite often true for Borland's docs as well. ... principle early in tutorials. ... advanced components is "most of the basics but few specialized terms and the ... You took my suggestion to Google for a tutorial far too personally and far ...
    (alt.comp.lang.borland-delphi)
  • Re: Bring back the old help format!
    ... my suggestion is to use ... and use advance search - the only pain is that you have to type ... > in tutorials on the web. ... They take forever to get through. ...
    (microsoft.public.excel.worksheet.functions)
  • Re: counter config.vi
    ... My suggestion is that you use this yourself as a macro, and if you know of any better tutorials, then link to them. ... (oops, ...
    (comp.lang.labview)