how to query an existing open ado recordset

if i open a ado recordset, can I then query into another recordset selected data, and then query that again, etc?
Brant KerseyAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rey Obrero (Capricorn1)Commented:
i have not done this and i don't think it is a good idea if it is even possible.

may i ask why you want to do this?
there might be a better solution ..
Jeffrey CoachmanMIS LiasonCommented:
...and post all the details of this...

no, you can't, a recordset is the result of a query which loaded the data into the recordset. A recordset object is not an own database which you can again query. (It's the same with ADO and DAO.)

But you said "selected data" so you must have a mechanism to select the data like a checkbox for each record or a filter you used in the form etc. So in the end you have a selection criterion, maybe the "Me.Filter" property which is a WHERE clause like "ID = 10". This you can read out and use that to query the database again using this as WHERE part and so you get a new recordset with the wanted data.



Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Brant KerseyAuthor Commented:
yeah, you got it. entry level programming gives you the weirdest ideas. it would be nice to have a mentor, but things arent like that nowadays really
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.