
Signature
Please respond to the Newsgroup for the benefit of others who may be
interested. Questions sent directly to me will only be answered on a paid
consulting basis.
Hope this helps,
Doug Robbins - Word MVP
The code that fails is:
With oDobj.ActiveWindow.Document
.MailMerge.OpenDataSource Name:=stConn, SQLStatement:=strSQL,
SubType:=wdMergeSubTypeWord2000
.MailMerge.Execute
(etc.)
The development machine is running XP pro. The test machine is running
Win 2000.
The connect := is not used. I tested with and without the connect with
no affect on the process.
> That's still nowhere near enough to go on save that if it works on one
> machine and not another, it must be something peculiar about that machine
[quoted text clipped - 30 lines]
> >>
> >> Any comments would be extremely helpful.
Doug Robbins - 05 Feb 2005 18:29 GMT
While the SubType attribute does appear when entering the .OpenDataSource
into the VBE, it is not documented in the Help file so I don't know what it
does. I would suggest that you try deleting it.

Signature
Please respond to the Newsgroup for the benefit of others who may be
interested. Questions sent directly to me will only be answered on a paid
consulting basis.
Hope this helps,
Doug Robbins - Word MVP
> The code that fails is:
>
[quoted text clipped - 51 lines]
>> >>
>> >> Any comments would be extremely helpful.
chris@oaksong.com - 07 Feb 2005 17:16 GMT
The SubType is a new 'feature' provided by MS because of changes made
to MS Word that allows for 'backward' compatibility with earlier
versions of Word. It is, indeed, undocumented, which is also mentioned
in the MSDN postings.
Without SubType, the application won't run on my machine. MS says this
should allow the expected process to occur on any machine with Word
2002, which is where I have a problem, as this is apparently not the
case.