I've created 2 subs which connect to an open Access database (MasterFile_January2021.accdb) and exports the data to this database.
At the moment, it seems to go into an endless loop of exporting the data from Monthly Reporting Tool - 600k+ rows were exported before it crashed compared to 250k expected rows (and I could find duplicates when there were not in the original file).
Sub ExportData()
Dim strPathFile As String, strFile As String, strPath As String, fileName As String
Dim strTable As String
Dim blnHasFieldNames As Boolean
blnHasFieldNames = True
strPath = "Z:\Danny Tool Test Folder\"
strTable = "tblDatabase"
strFile = Dir(strPath & "Monthly Reporting Tool.xlsm")
Do While Len(strFile) > 0
strPathFile = strPath & strFile
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, _
strTable, strPathFile, blnHasFieldNames
Loop
End Sub