I want to run some code which will move through a table to change variables.
My table looks a little like this:
Account Location Name
1001 C:\Folder1\John.xls John
1002 C:\Folder1\Jame.xls James
1003 C:\Folder1\Jill.xls Jill
And i want to run the below code so that the account value from the table is used as a filter on Query1 and the Location value from the table is used as the export location.
DoCmd.OutputTo acQuery, "Query1", "MicrosoftExcel(*.xls)", "Location value from Table", False, ""
My table looks a little like this:
Account Location Name
1001 C:\Folder1\John.xls John
1002 C:\Folder1\Jame.xls James
1003 C:\Folder1\Jill.xls Jill
And i want to run the below code so that the account value from the table is used as a filter on Query1 and the Location value from the table is used as the export location.
DoCmd.OutputTo acQuery, "Query1", "MicrosoftExcel(*.xls)", "Location value from Table", False, ""