Could someone please help? I am trying to attach a piece of code to a button on a form to import a fixed width text file with a saved import specification.
Private Sub ImportDataTest_Click()
DoCmd.TransferText acImportFixed, "Import-Call0CurrentCSV", "Call0CurrentTbl", "Call0CurrentFile"
DoCmd.Close
End Sub
I am getting a ‘runtime error 3625. The text file specification does not exist. You cannot, import, export or link using the specification’.
However, I have checked. The saved import of that name does exist and works when executed manually, the text file also exists.
Thank you in advance.
Private Sub ImportDataTest_Click()
DoCmd.TransferText acImportFixed, "Import-Call0CurrentCSV", "Call0CurrentTbl", "Call0CurrentFile"
DoCmd.Close
End Sub
I am getting a ‘runtime error 3625. The text file specification does not exist. You cannot, import, export or link using the specification’.
However, I have checked. The saved import of that name does exist and works when executed manually, the text file also exists.
Thank you in advance.