Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. LIMIT in MSAccess SQL Query

LIMIT in MSAccess SQL Query

Scheduled Pinned Locked Moved Web Development
databasehelpquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Suman Singh
    wrote on last edited by
    #1

    Hi All, How can I get records for a limit in MS Access. Let say, there are 2500 records are in table. I want to fetch records from 1800 to 1900... TOP clause coould not solve this problem.... Thanks in advance... Suman Singh

    B T 2 Replies Last reply
    0
    • S Suman Singh

      Hi All, How can I get records for a limit in MS Access. Let say, there are 2500 records are in table. I want to fetch records from 1800 to 1900... TOP clause coould not solve this problem.... Thanks in advance... Suman Singh

      B Offline
      B Offline
      badgrs
      wrote on last edited by
      #2

      As far as I'm aware this is one of the limitations of T-SQL - you can't limit the query between two row numbers. One of the many reasons I love MySQL! btw - this would have been better in the SQL forum!

      1 Reply Last reply
      0
      • S Suman Singh

        Hi All, How can I get records for a limit in MS Access. Let say, there are 2500 records are in table. I want to fetch records from 1800 to 1900... TOP clause coould not solve this problem.... Thanks in advance... Suman Singh

        T Offline
        T Offline
        theJazzyBrain
        wrote on last edited by
        #3

        Access does not have a function that selects a range of records like MySQL, You will have to calculate this programmatically. You can use several methods. I would suggest the double SELECT TOP with reversed ordering.

        Jason Kataropoulos

        Excellence is not an act, but a habit!

        Aristotle

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups