I have very little experience with Access VBA so I'm hoping you can help me. I have an access 2010 database setup as follows:
4 tables linked to other access databases
A union qry (qry_all) linking the above 4 tables
A select query based off above union query (qry_all_calcs) with calculated fields.
The data will be updated/added weekly until the end of the year. there are currently about 900,000 records. I want to link the last query to an excel file (for a report) but it's too much data. However, I have 10 select queries with a criteria of office location (eg qry_atlanta, qry_dallas, qry_new york) that run off the qry_all_calcs - those do succesfully run and link to excel.
as a work around i'd like to create code that will append the data from the 10 location queries to 1 tab in an excel workbook. when the vba code is run it should delete all data in the tab first.
I'm just beginning to learn vba but I'm not a programmer so I'd really appreciate as much detail with code as possible.
4 tables linked to other access databases
A union qry (qry_all) linking the above 4 tables
A select query based off above union query (qry_all_calcs) with calculated fields.
The data will be updated/added weekly until the end of the year. there are currently about 900,000 records. I want to link the last query to an excel file (for a report) but it's too much data. However, I have 10 select queries with a criteria of office location (eg qry_atlanta, qry_dallas, qry_new york) that run off the qry_all_calcs - those do succesfully run and link to excel.
as a work around i'd like to create code that will append the data from the 10 location queries to 1 tab in an excel workbook. when the vba code is run it should delete all data in the tab first.
I'm just beginning to learn vba but I'm not a programmer so I'd really appreciate as much detail with code as possible.
Comment