Version of word is 2002.
As the subject says, datasource is a text file. I tried
an .mdb file and it seems to work fine but if I use Access
to export the same .mdb file to .txt in word merge format
it fails.
Hi Bruno,
> Version of word is 2002.
>
Right. By default, Word 2002 (and 2003) uses OLE DB to
connect to the data source. I tested in both versions, and
noticed that in Word 2002 the prompt displayed to select the
field delimiter. And this dialog box showed a preview of the
data, and in that, Word was definitely trying to interpret
the HTML tags (<b> showed in bold, for example).
Word 2003 seems to take a different route, at least I got a
different dialog box prompting for the field delimiters that
did NOT show a preview. And although I had to specify the
field delimiter twice, there were no complications,
otherwise.
If I used a different connection method, such as ODBC or
Word's internal text converter, there were no problems at
all, in either version.
The OLE DB connection also worked just fine in Word 2002 if I
used a TAB field delimiter (rather than a semicolon) and
enclosed all the text entries that could be a problem in
"quotes".
When I tried to use semicolons, Word 2002 refused to
recognize the delimiter, even though I was prompted for it.
But at least as soon as I started using "quotes" I was
getting the dialog box I'm seeing in Word 2003 that doesn't
try to render a preview.
So, the key is to either NOT use OLE DB as the connection
method, or be sure to surround these text areas with
"quotes".
> As the subject says, datasource is a text file. I tried
> an .mdb file and it seems to work fine but if I use Access
> to export the same .mdb file to .txt in word merge format
> it fails.
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep
30 2003)
http://www.mvps.org/word
This reply is posted in the Newsgroup; please post any follow
question or reply in the newsgroup and not by e-mail :-)