Results 1 to 2 of 2

Thread: Adding ADO records to collection

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2001
    Location
    NY, NY
    Posts
    6

    Unhappy Adding ADO records to collection

    I'm trying to do one of two things. I'm working with a recordset returned by a SQL stored procedure, and as I apply my complex criteria in the next step, I want to store the records I want to keep in a collection.

    My problem is that I cannot seem to say :
    adoRecord.open adoRecSet

    and when I try to do:
    objCollection.add adoRecSet

    the record loses focus as soon as the recordset it came from is closed.

    Can't proceed without some assistance...

    Very grateful for your help.
    -Sabrina

  2. #2
    rickm
    Guest

    Re: Adding ADO records to collection

    Originally posted by VBWizInTraining
    I'm trying to do one of two things. I'm working with a recordset returned by a SQL stored procedure, and as I apply my complex criteria in the next step, I want to store the records I want to keep in a collection.

    My problem is that I cannot seem to say :
    adoRecord.open adoRecSet

    and when I try to do:
    objCollection.add adoRecSet

    the record loses focus as soon as the recordset it came from is closed.

    Can't proceed without some assistance...

    Very grateful for your help.
    -Sabrina
    Why dont you try the filter method, and leave them in your recordset??

    adoRecSet.Filter = "A = ? and B = ?"
    adoRecSet.ReQuery

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