VBA - query an Access table -> results in Excel

G

Guest

Using VBA, I want to query an Access database table which has > 240,000
records. The data I am quering for is from a worksheet (sheet1) and I would
like the results stored in an Excel worksheet (sheet2). The results from the
query will be only a few thousand records, never greater than 10,000. The
Access db and Excel sheet are on the same PC. Eventually I will need to query
the Access DB from a different PC across a network.
What is the best way to do this?

Thanks,

rirus
 
D

Dave Patrick

I'd use ADO This article may help.

http://support.microsoft.com/kb/257819/

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| Using VBA, I want to query an Access database table which has > 240,000
| records. The data I am quering for is from a worksheet (sheet1) and I
would
| like the results stored in an Excel worksheet (sheet2). The results from
the
| query will be only a few thousand records, never greater than 10,000. The
| Access db and Excel sheet are on the same PC. Eventually I will need to
query
| the Access DB from a different PC across a network.
| What is the best way to do this?
|
| Thanks,
|
| rirus
 
G

Guest

I set up an ODBC for the Access database and then added a tablequery in the
Excel worksheet. So far that is working great and is getting what I need.
Surprisingly, the query takes seconds to run which is faster than what I
expected. I am not sure though how it will work across a network. Hopefully
the retrieval rate will not change too much.

Thanks for your inputs. They have been helpful.

rirus
 

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

Top