> I use Word mailmerge out of VB 6.0.
> With an SQL procedure I create a *.txt file using an SQL
[quoted text clipped - 19 lines]
> manage to find out. It would be great if someone could
> help me out of this.
Thank you for your suggestion but I've already tried it
out without any result.
But let me recall the differences I met with Word 2002
when merging:
1. First there is that SQL check window "Select * from .."
that can be removed with the "SQLSecurtiyCheck = 0" Option
in the registry or with the OpenDataSource command under
VB.
2. Then there is the "Set the delimiters" window which
opens everytime I call for a template from VB (not when
opened directly form the Explorer).
3. Even after telling Word to use "#" as record delimiter,
it refuses nevertheless to merge correctly if there is any
CRLF in one of the merged fields, acting as if CRLF still
was the delimiter.
Now, maybe I have to introduce some further command under
VB to tell Word to use "#" as the record delimiter when
merging. But, does anyone know that command? As I said, it
isn't enough adding Subtype:=wdMergeSubtypeWord2000 to the
Opendatsource call.
Best regards,
Claude
>-----Original Message-----
>Generally speaking, if something worked with VB/VBA in Word 2000 and does
[quoted text clipped - 32 lines]
>
>.
Peter Jamieson - 20 Sep 2004 11:48 GMT
> Thank you for your suggestion but I've already tried it
> out without any result.
OK.
> Now, maybe I have to introduce some further command under
> VB to tell Word to use "#" as the record delimiter when
> merging. But, does anyone know that command?
As far as I know,
a. if Word is connecting using ODBC, it always requires the record
delimiter to be CRLF. You can set the /field/ delimiter using a SCHEMA.INI
file.
b. if Word is connecting using its internal text converter, there is no way
to specify the delimiter in code, except perhaps to use Sendkey
I'm less sure about the options if Word is connecting using OLEDB
Can you post your OpenDataSource statement here, please?

Signature
Peter Jamieson
> Thank you for your suggestion but I've already tried it
> out without any result.
[quoted text clipped - 67 lines]
> >
> >.
ClaudeV - 20 Sep 2004 12:32 GMT
Here's the kind of statement I use in VB:
wd.ActiveDocument.MailMerge.OpenDataSource
Name:="C:\Path\database.txt",
SubType:=wdMergeSubTypeWord2000
Claude
>-----Original Message-----
>> Thank you for your suggestion but I've already tried it
[quoted text clipped - 90 lines]
>
>.
ClaudeV - 20 Sep 2004 21:36 GMT
Hi Peter,
Just found out a solution. As I told before I had tried
two things: First the OpenDataSource statement in VB,
second the SQLSecurityCheck=0 Option in the Registry.
I just found out that it's enough to enter the last one
but withdraw the OpenDataSource statement under VB. Both
together don't work. The first doesn't go with the
delimiter change, the second does. Of course, I'm not
happy to withdraw the SQLSecurity check, but as long as I
have no other solution, I'm happy with it.
So, thanks for now. Maybe someone will get a better idea
later.
Yours sincerely,
Claude
>-----Original Message-----
>Here's the kind of statement I use in VB:
[quoted text clipped - 127 lines]
>>
>.
Peter Jamieson - 21 Sep 2004 06:25 GMT
Thanks for the feedback - I do not have a better answer.

Signature
Peter Jamieson
> Hi Peter,
> Just found out a solution. As I told before I had tried
[quoted text clipped - 149 lines]
> >>
> >.