I am using MS Access 2003/2007.
I understand that there is an Output To macro that will export selected queries into an Excel (xls, xlsx) format to a specific path that can be converted to vba:
DoCmd.OutputTo acOutputQuery, "QueryName", "ExcelWorkbook(*.xlsx)", "C:\Users\Default\Desktop\ReportName.xlsx", False, "", , acExportQualityPrint
If I have a user defined table or query that stores query names, user friendly export names, and export paths how would I be able to export a list of queries from a table list into separate Excel files to specific folder paths with the user friendly names?
Here is an example of what the table would look like:
I'm aiming at creating an AutoExec macro that will run this script and export individual queries to different folder paths.
I understand that there is an Output To macro that will export selected queries into an Excel (xls, xlsx) format to a specific path that can be converted to vba:
DoCmd.OutputTo acOutputQuery, "QueryName", "ExcelWorkbook(*.xlsx)", "C:\Users\Default\Desktop\ReportName.xlsx", False, "", , acExportQualityPrint
If I have a user defined table or query that stores query names, user friendly export names, and export paths how would I be able to export a list of queries from a table list into separate Excel files to specific folder paths with the user friendly names?
Here is an example of what the table would look like:
Code:
Query User Friendly Name Export Path
Query1 Report 1 C:\Users\Default\Path1\
Query2 Report 2 C:\Users\Default\Path2\
Query3 Report 3 C:\Users\Default\Path3\