Creating tables and putting into excel

poiu

Active Member
Joined
Sep 13, 2011
Messages
384
Hello,

I have a big table of cost centre spend in access (About 1 million records) and need to run queries to create smaller tables that I can put into Excel 2003 (so 65000 rows limit).

I need to create a table for each combination of "country" and "department" (there are a different number of departments in each country so I can't hard code), put each table into a new excel document (none of the tables will have more than 65000 lines), and then close and save each new document.

Please can you tell if/how I can do this with Access VBA?

Thanks,

Poiu
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

Forum statistics

Threads
1,211,741
Messages
6,103,647
Members
447,875
Latest member
kaku_1728

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