I'm thinking this might have to use VBA, but is there any way to create the following sequence of actions within the built-in MS Access macro features?:
- Run delete query for table (table1)
- Run append query for table1
- Table1 is exported where the following are true:
- table1 is exported as .xlsx
- the date is added to the end of the file name (table1_200414.xlsx)
- the file is exported to a specific file path
I've seen step #3 done with VBA, but I'm wanting to be able to copy this macro between databases, so I don't know if the VBA code would be copied by a simple copy-paste of the macro. If it is, then how would you do this in VBA?