That was for an export of course. To import, go to the File menu, select
Get External Data and Import. In the Files of Type drop down, select Text
Files and then proceed as previously discussed.
Look at using the TransferText method. Normally, you create an import
specification through the Import Text wizard accessed through the
instructions given in my last post (by clicking on the Advanced button).
You can use the Save As option to give the specification a name, which you
can then use in the TransferText method. For example:
I can import data successfully using the import
wizard. When I save the Test Link Specification and call
it in code using the identical text file, the data does
not get written in the table and there is no error message -
DoCmd.TransferText acImportDelim, "Test Link Specification", "table3",
"C:\test\test.txt", False
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.