Results 1 to 6 of 6

Thread: Create Recordset

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 1999
    Location
    Reynosa, Mexico
    Posts
    274
    Can I create (open) a recordset not from a table, from another recordset in memory instead? Something like this:

    Code:
    'open recordset 1
    rs1.Open "SELECT * FROM table",cn... (etc)
    'open recorset 2 from the first recordset
    rs2.open "SELECT * FROM rs1,... (etc)

    Ulises Vázquez
    [size=1.7]Oracle DBA Certified Professioanl
    Visual Basic 6 Developer
    Crystal Reports Designer
    [/size]

  2. #2
    Fanatic Member Ianpbaker's Avatar
    Join Date
    Mar 2000
    Location
    Hastings
    Posts
    696
    Hi Tonatiuh

    do you mean you want requery the data that has been returned in the first recordset?

    Ian
    Yeah, well I'm gonna build my own lunar space lander! With blackjack aaaaannd Hookers! Actually, forget the space lander, and the blackjack. Ahhhh forget the whole thing!

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    May 1999
    Location
    Reynosa, Mexico
    Posts
    274
    Yes Ian, the tables where I get the rs1 are too big and slow, and the net is elittle slow in some cities. I think if this is posible (create rs2 from the rs1) it must be to much quickly because the rs1 is already in memory.
    Ulises Vázquez
    [size=1.7]Oracle DBA Certified Professioanl
    Visual Basic 6 Developer
    Crystal Reports Designer
    [/size]

  4. #4
    Fanatic Member Ianpbaker's Avatar
    Join Date
    Mar 2000
    Location
    Hastings
    Posts
    696
    As far as I know, you have to use a connection object to open a recordset but moving through a recordset in VB checking whether a certain criteria matches the record's that have all ready been retured is very quick

    Ian
    Yeah, well I'm gonna build my own lunar space lander! With blackjack aaaaannd Hookers! Actually, forget the space lander, and the blackjack. Ahhhh forget the whole thing!

  5. #5
    Guest
    I have no idea how to work with a second recordset.
    I suggest to copy rs1 to an array and work from there....


  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    May 1999
    Location
    Reynosa, Mexico
    Posts
    274
    Ther is not very quick when the recordset is too much large and contain many fields.

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