Display an ADO recordset as a datasheet in MS Access data project

I am using Access 2002 as an adp front end to SQL Server 2000.  I want to create a recordset in ADO using parameters selected by the user and display it in a datasheet view, the same display result you get from DoCmd.OpenQuery and DoCmd.OpenStoredProcedure.
dwoliverAsked:
Who is Participating?

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

x
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.

Leigh PurvisDatabase DeveloperCommented:
I'm afraid that's not going to happen.
You could have a form (in datasheet mode) with the appropriately bound controls in it - and then set that form's recordset to be the recordset you've opened.
But a spontaneous datasheet from a recordset held in code isn't possible.
(You could write it out in a structured order to a file or something - but that isnt the same as a datasheet type grid)

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
dwoliverAuthor Commented:
Thanks for clarifying this issue.  A related follow-up question.  Is it possible to open a stored procedure as a datasheet AND pass it some parameters or can you only open sprocs that require no parameters?
Leigh PurvisDatabase DeveloperCommented:
Well, bear in mind that it's something I'd never want to do anyway... I certainly don't know of a way that you'd do that (without the parameter prompts popping up at you).

You should really be looking to use forms for such things.
You gain so much more control.
dwoliverAuthor Commented:
Thanks, LPurvis for your prompt responses.  Answer accepted.
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.