The following code works perfectly
DoCmd.TransferText acImportFixed, strImpSpec, strTable, strPathFile, boolHasFieldNames
If I replace the "acImportFixed" with a string function witht he same value, it fails with an Error 13 Type Mismatch
DoCmd.TransferText strTextTransfer, strImpSpec...