CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Sorting Adodc

  1. #1
    Join Date
    Apr 2001
    Posts
    87

    Sorting Adodc

    Anyone, help me please. How do i sort data in ADODC control?..

    Thanks.

    Cecile

    The more u read, the more u do not know

  2. #2
    Join Date
    Mar 2001
    Posts
    26

    Re: Sorting Adodc

    Hi

    If you use sql command to retrieve data, you can use "ORDER BY" sql command.

    Ehsan


  3. #3
    Join Date
    Apr 2001
    Posts
    87

    Re: Sorting Adodc

    But then I'm using recordset.

    Adodc1.Recordset.Sort #i dont what else

    if I use
    Adodc1.Recordset.Sort = "Field"

    it tells error that this not support the funtion...




    The more u read, the more u do not know

  4. #4
    Join Date
    May 2001
    Posts
    40

    Re: Sorting Adodc

    use sql instead of a table as your ADODC recordsource.
    ie select [your fields here] from [table name here] Order by [your sort fields here]

    hope this helps


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

Featured