I want to add a button to a form to import a text delimited file. The
File is delimited by "^" and so I have created a specification file by
manually impoting the text file, using the advanced button and saving
the specification.
Naively I thought I just needed to add the specification file name to
variable strSpec for the following command to work
DoCmd.TransferText acImportDelim, strSpec, strOutFile, strInFile,
-1
When i run this from the button there is an error message returned
which states the specification file does not exist but when doing this
manually it is still in the database.
Can anyone tell me how to get the command to find the specification
file or how to code it directly into the above command?
Thanks