
Originally Posted by
June7
Save the UNION SQL as a query object then reference that object in the Execute.
What would the code be for that? I know how to create the UNION query object, I just have never combined a execute action with a query object before.

Originally Posted by
June7
run two INSERT actions
This I assume would be as per below:
Code:
CurrentDb.Execute "INSERT INTO FRT_Table SELECT dbo_Archive_FRT_Table.* FROM dbo_Archive_FRT_Table;", dbFailOnError
CurrentDb.Execute "INSERT INTO FRT_Table SELECT Current_FRT_Table.* FROM Current_FRT_Table;", dbFailOnError
Which of the two options would be the most efficient in processing time? Note the dbo table is up in our Azure SQL server, the other two are local within access, they are also quite large the dbo is around 9000 records, and the current one is sitting at 7500 records and both obviously will only get bigger.