CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2001
    Location
    Mississauga, CANADA
    Posts
    199

    Problem with in memory ADODB rs

    12 fields in the rs.
    code reads;
    .
    with rsTmp
    .Sort = "COST" ' FieldType double, want it in ascending order
    .Filter = "COST > 0" ' Do not return records with 0 in COST
    end with
    .
    problems I get are:
    a) sort does not happen, still get physical order of rsTmp
    b) returns all records, not just the ones where COST > 0.
    .
    This works on a rs created from a physical table, but not on an "in memory" rs.
    Any ideas?
    Thanks
    Paul

  2. #2
    Join Date
    Aug 2003
    Location
    Buenos Aires, Argentina
    Posts
    513
    See the MSDN, some kind of recordsets don't support sorting and filtering. If you do open the recordset with an sql instrution, you can order te rcords in the sql statement

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