In addition, you probably need to create / save an Import Spec (manually)
before you can use TransferText in code so that Access recognise the pipe
character | as the Field delimiter.
If the table is different each time then you will probably have to parse it
in code.
By different I mean a different number of columns or columns not always
haveing the same meaning.
If it is not different then it is just a mattter of creating the spec and
supplying the file name and location.
As Mike points out, you should only need to make the spec dynamically if
the columns change frequently. If that is the case, here are a couple
links to Microsoft's knowledgebase that show how to dynamically create a
Schema.ini file and use it when importing:
If the columns aren't changing very often, it will be simpler to create
a spec with the Import Text wizard.
HTH,
Jim Sizelove
Ask a Question
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.