Hi John,
By import specification, do you mean the table that lists all the fields in
the txt file to be imported? If you do, I have inserted a new field for it.
If not, could you please explain.
An import specification is a way of specifying how a text file should be
imported. The usual way to create one is by importing or linking the
file manually (File|Get External Data), and clicking the Advanced button
in the text import wizard. Once a specification has been created, you
have to tell Access when to use it: in a manual import, you use the
Advanced button again; and when using the TransferText macro or VBA
statement you use the name of the specification as one of the arguments.
It's usually not necessary to have an import specification when
importing comma-separated files, so if you have never heard of them you
probably don't need one.
The info is confidential so I am unable to send the files.
Although the example of the partial file I included in the previous entry in
this thread is exactly the same as the file looks when looking at by notepad.
The sample you posted was split across two lines by the time it got to
me. I've indicated below where the line break was:
new txt file read (partial) "currencey",trans code,serial no,"trans
<line_break_here>desc","trans desc 2",amount,imm avail,one day,two day
There's no way I can tell at this end whether the line break is part of
the data you see, or whether it was inserted by the newsgroup software.
Moreover, what you posted -
currencey
trans code
serial no
etc. - look more like field names than data in fields. If they're field
names, then they most certainly shouldn't contain any line breaks ...
but in your first message you said that your new field has two lines. So
I'm confused.
Can you post here, or send me, the first three or four records from the
text file. Modify the data to avoid any confidentiality issues (e.g.
change any personal or company names, phone numbers and addresses).
Because what you post here gets wordwrapped, please indicate clearly
every line break either within a field or between records.