Passing an input parameter to an access query

  • Thread starter Thread starter Steven C
  • Start date Start date
S

Steven C

Hi, I'm sure there is a really simple way to do this...

I'm trying to pass an input paramater to an Access query using OleDb.
I know it can be achieved using a command object but this only seems
to be able to create a datareader object and I want a dataset. Does
any one know how to pass an input paramateter to get a dataset back?

Thanks in advance
Steven
 
Steven C said:
Hi, I'm sure there is a really simple way to do this...

I'm trying to pass an input paramater to an Access query using OleDb.
I know it can be achieved using a command object but this only seems
to be able to create a datareader object and I want a dataset. Does
any one know how to pass an input paramateter to get a dataset back?

Use a DataAdapter, specifying the command and then using Fill.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top