Results 1 to 3 of 3

Thread: Restricting No of records in ADO recordset from MS-Access database

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2000
    Posts
    1

    Question

    Restricting the number of records in ADODB recordset is possible by using property 'MaxRecords', but it works only with SQL Server database and doesn't work with MS-Access database. Can anyone suggest a way to make it working. Please be sure that combination is ADODB, MS-Access database and linked with MS-Access DSN. Awaiting solution

    Shreekant Bilurkar

  2. #2
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844

    Red face

    interesting.....I'm very surprised that the Jet driver doesn't support this!

    http://support.microsoft.com/support...-US&SD=gn&FR=0

  3. #3
    Junior Member
    Join Date
    Jun 2000
    Location
    Philippines
    Posts
    24

    Lightbulb



    Have u tried using SELECT TOP [no of records] statement?

    Example:

    rst.open "SELECT TOP 10 * FROM MyTable WHERE ID = 3",conn,adOpenDynamic,......

    effectively returns 10 records basing on the criteria.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width