import query results from multiple access files into excel

miky011

New Member
Joined
Jul 8, 2015
Messages
1
I have multiple MDB's files in a Windows folder named 'Results'

MDB1.MDB , MDB2.MDB , MDB3.MDB .... MDBx

These are Quotation results from vendors. Each MDB has the same Query 'Q_Total_RFQ'.

The query has three columns: "RFQ" , "Vendor" , "Total"

Now what I need is to run a script or macro that read the query from each MDB in the folder and write

it on a single Excel sheet (XLSX 2007 and above).

worksheet data should look like :

RFQ, Vendor, Total
100001, 12345, 100000
100001, 12346, 150000
100001, 12347, 95000
100001, 12348, 12000
 
Last edited:

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Hi Miky011,
what code did you create yourself so far?
Cheers,
Koen
 
Upvote 0

Forum statistics

Threads
1,215,375
Messages
6,124,578
Members
449,174
Latest member
chandan4057

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top