First day at a job and I had to took someones code over and in one of the first functions I have this :
If ExistTable("S_NEW") Then DoCmd.DeleteObject acTable, "S_NEW"
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, "S_NEW", _
tmpPATH & Dir(tmpPATH & "S2_*.xlsm "), True, "DF_GRID_1"
DoEvents
If ExistTable("FCT_NEW") Then DoCmd.DeleteObject acTable, "FCT_NEW"
DoCmd.TransferSpreadsheet acTable, acSpreadsheetTypeExcel9, "FCT_NEW", _
tmpPATH & Dir(tmpPATH & "Fct*.xlsx "), True
DoEvents
The first 'if' looks normal, we delete a table and import new data from an excel. But the second 'if' has an acTable as AcDataTransferType which is following the documentation not a choice.. Keep in mind that this person wrote this part of code a very long time ago.
Is it just a simple import ?

