Cindy,
The querries are fairly complex with multiple inner joins, however my guess
is that the problem relates to the use of a couple of user defined functions
that are defined in an Access Module. Those functions worked fine when
merge talked to Access via DDE, but not via OLE DB.
This application is over eight years old and uses a number of fairly complex
querries. It would probbly make sense for me to port the application to
SQLServer some day. However, since I only need to run this merge report once
per year, I really can't justify the effort to do that at this time. To
work around the problem this year, I have changed the select querries to
make table querries and now the mail merge document datasources use those
tables directly.
Chuck Hartman
> Hi Chuck,
>
[quoted text clipped - 21 lines]
> This reply is posted in the Newsgroup; please post any follow question or
> reply in the newsgroup and not by e-mail :-)
Cindy M -WordMVP- - 03 Jun 2004 13:00 GMT
Hi Chuck,
> The querries are fairly complex with multiple inner joins, however my guess
> is that the problem relates to the use of a couple of user defined functions
> that are defined in an Access Module. Those functions worked fine when
> merge talked to Access via DDE, but not via OLE DB.
>
Yep, that explains it. User-defined functions and some VBA functions are only
available in DDE mode (because they require the user interface to execute;
other functions are "native" to the ODBC driver and will work outside the UI).
Besides the work-around you've discovered, you'd also have the option of
continuing to use the DDE interface. You'll find instructions on how to change
the connection method in the Word 2002 section of my website's mail merge FAQ.
> This application is over eight years old and uses a number of fairly complex
> querries. It would probbly make sense for me to port the application to
[quoted text clipped - 3 lines]
> make table querries and now the mail merge document datasources use those
> tables directly.
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep 30 2003)
http://www.word.mvps.org
This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)