CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2001
    Posts
    30

    sort property in vb recordset

    Hi,

    I'm trying to create a recordset and use the sort proerty, but it fails when opening the recordset for an unspecified error. Here's the code:


    private Sub Form_Load()
    Dim rst as new ADODB.Recordset

    With rst
    .Fields.Append "fld1", adBSTR
    .Fields.Append "fld2", adInteger
    .Sort = "fld1"
    .Open
    End With
    End Sub



    WHY ??????


  2. #2
    Join Date
    May 2000
    Location
    New York, NY, USA
    Posts
    2,878

    Re: sort property in vb recordset

    I think that you cannot append(or sort) to the recordset that is not opened yet

    Iouri Boutchkine
    [email protected]
    Iouri Boutchkine
    [email protected]

  3. #3
    Join Date
    Aug 2001
    Posts
    30

    Re: sort property in vb recordset

    even when opening the recordset and then do the sort, it fails.


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