Results 1 to 4 of 4

Thread: Empty Recordset creation

  1. #1

    Thread Starter
    PowerPoster abhijit's Avatar
    Join Date
    Jun 1999
    Location
    Chit Chat Forum.
    Posts
    3,228

    Angry Empty Recordset creation

    Dear All,

    How do I go about creating an empty recordset? I wish to pass an empty recordset back to the client from my COM Component.

    Is this kind of scenario would be desirable? Please explain the need to pass an empty recordset. Should I simply delete the records? Or do I manipulate the field object?

    Cheers!
    Abhijit

  2. #2
    Addicted Member
    Join Date
    Nov 2001
    Posts
    163
    If you are using ado then you can create disconnectd recordset

    dim rs as new recordset

    rs.append(....) 'for creating fields

    or you can use

    set rs="select * from table where sonething is null",connection
    Purushottam

  3. #3
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    What is it you are trying to do?

  4. #4

    Thread Starter
    PowerPoster abhijit's Avatar
    Join Date
    Jun 1999
    Location
    Chit Chat Forum.
    Posts
    3,228

    Arrow

    Thanks for replying back. I got the empty recordset done. Basically what I did was query a condition which was bound to be false.

    How do you do that append fields bit?

    Please point me in the right direction.

    Cheers!
    Abhijit
    Everything that has a computer in will fail. Everything in your life, from a watch to a car to, you know, a radio, to an iPhone, it will fail if it has a computer in it. They should kill the people who made those things.- 'Woz'
    save a blobFileStreamDataTable To Text Filemy blog

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