This is what I've been messing with and it keeps throwing error that it doesn't find my excel spreadsheet.
For my first table:
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel12Xml, "qryNameFirst", "test1.xlsx", True, "MyWorksheetName"
For my second table:
Dim rstName As...