DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Saiful Guest

    How to Use sort property


    How do you use the Sort property of the ADO Recordset? Any example.

    I wish to sort on two column fields. Say AParam first then followed by ASequence.

    How do my Sort statement looks like assuming my recordset is RS.

    RS.Sort ???

    rgds,
    Saiful

  2. #2
    Erwin Guest

    Re: How to Use sort property

    Try this

    strSort = Fieldname1 & Fieldname2 & " ASC"
    AdoRS.Recordset.Sort = strSort

    Erwin


    "Saiful" <md-saifulamri_omar@hp.com> schreef in bericht
    news:39ae6763$1@news.devx.com...
    >
    > How do you use the Sort property of the ADO Recordset? Any example.
    >
    > I wish to sort on two column fields. Say AParam first then followed by

    ASequence.
    >
    > How do my Sort statement looks like assuming my recordset is RS.
    >
    > RS.Sort ???
    >
    > rgds,
    > Saiful




  3. #3
    dhruvesh Guest

    Re: How to Use sort property


    read "ADO tutorial" in microsoft MSDN help for VB



    "Saiful" <md-saifulamri_omar@hp.com> wrote:
    >
    >How do you use the Sort property of the ADO Recordset? Any example.
    >
    >I wish to sort on two column fields. Say AParam first then followed by ASequence.
    >
    >How do my Sort statement looks like assuming my recordset is RS.
    >
    >RS.Sort ???
    >
    >rgds,
    >Saiful



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links