Search Access Table with Excel

  • Thread starter Thread starter Looch
  • Start date Start date
L

Looch

Hi All,

I'm new to programming Excel but have been at it for a couple years
now with Access.

Can a macro be written to search an access table using data from an
excel list as criteria? If so can the fields returned in the query
(i.e. select * from table1 where column1 = an excel list value) be
assigned to individual cells in the worksheet?

Just wondering if its possible.

Thanks for any insight.
 
Yes. Use ADO. You would just construct the appropriate SQL string to pass
to the query.

Another way would be to do a querytable. You can create a querytable with
the macro recorder turned on to get the code to create the querytable.
 

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