J
jgraves
I am new to VBA programming in Access, though very comfortable using queries
and macros. I want to know if the following can be done without VBA, and if
so, where should I start? If not possible, where should I start?
*Note - I realize more advanced folks refer to VBA as "macros", but I am
using "macros" to refer to the GUI interface object type that you can enter
commands, arguments and comments.
I have a large table of company product data (about 2 million records) that
I want to export in subsets based on "Company Name".
Ex:
Company Name Product Color Size ...
Acme ProdA-1 Red 4
Acme ProdA-2 Blue 4
Acme ProdA-3 Red 1
JaneDoe ProdABC Orange 2
JaneDoe ProdABC Orange 2
I had been using a select query, then exporting it via a macro command to an
Excel spreadsheet that I already formatted. (I designated named ranges to
specify where I wanted the information to export to, since each report is
then delivered to a specific customer)
Trouble is, I have 250 companies to export for. In the past I created 250
queries and 250 Excel templates to export them to, then just used a macro to
run through each one individually. I am thinking there has to be a better way.
I want to use a table with a summary of all the unique companies in the file
and use each company name as a criteria in the select query for that
company's product records. Then I also want to automate the export of those
select queries. (I don't want to have to create a macro with 250 line entries)
Does anyone have any suggestions as to how to accomplish this in a more
automated fashion? I would be so appreciative, as I am swimming over my head.
and macros. I want to know if the following can be done without VBA, and if
so, where should I start? If not possible, where should I start?
*Note - I realize more advanced folks refer to VBA as "macros", but I am
using "macros" to refer to the GUI interface object type that you can enter
commands, arguments and comments.
I have a large table of company product data (about 2 million records) that
I want to export in subsets based on "Company Name".
Ex:
Company Name Product Color Size ...
Acme ProdA-1 Red 4
Acme ProdA-2 Blue 4
Acme ProdA-3 Red 1
JaneDoe ProdABC Orange 2
JaneDoe ProdABC Orange 2
I had been using a select query, then exporting it via a macro command to an
Excel spreadsheet that I already formatted. (I designated named ranges to
specify where I wanted the information to export to, since each report is
then delivered to a specific customer)
Trouble is, I have 250 companies to export for. In the past I created 250
queries and 250 Excel templates to export them to, then just used a macro to
run through each one individually. I am thinking there has to be a better way.
I want to use a table with a summary of all the unique companies in the file
and use each company name as a criteria in the select query for that
company's product records. Then I also want to automate the export of those
select queries. (I don't want to have to create a macro with 250 line entries)
Does anyone have any suggestions as to how to accomplish this in a more
automated fashion? I would be so appreciative, as I am swimming over my head.