Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / November 2003

Tip: Looking for answers? Try searching our database.

MS Word Mail Merge and MS Query...

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Timothy LoGrasso - 19 Nov 2003 18:08 GMT
Problem statement:  Originally I was trying to use MS
Access as the query engine, however that will not support
parameter queries.  So, I built the query in MS Query.  
When I use this query as the datasource, MS Query
launches, and once I make MS Query the active window I'm
prompted for the paramaters.  I'm then asked if I want to
open this query every time I open the data source.  I'm
not sure what exactly this means but it doesn't matter
because regardless of what I choose, I get the same error
dialogue.  "Word was unable to open the data source"

Question:  How can this be?  The query runs properly in MS
Query.  I'm prompted, as desired, for paramaters.  How
should I troubleshoot this issue?

Thanks!  

Tim
Peter Jamieson - 20 Nov 2003 01:00 GMT
> I'm then asked if I want to
> open this query every time I open the data source.

In this case, the choice is between the following:
a. You save the query specification as a .dqy file. When MS Query returns
the connection info. etc. to Word, it says the data source is the .dqy. When
Word needs to get the real data, it starts MS Query and uses DDE to tell it
to open the .dqy file, execute the query, and return the data.
b. You don't save the query specification as a .dqy file. When MS Query
returns the connection info. to Word, it provides the raw connection info.
to the underlying database. When Word needs to get the real data, it goes
directly to the underlying database and does not go via MS Query at all.

> Question:  How can this be?  The query runs properly in MS
> Query.  I'm prompted, as desired, for paramaters.  How
> should I troubleshoot this issue?

Unfortunately MS Query was originally designed for use with MS Excel, and
not all of its features can be used with MS Word. Parameter queries seems to
be one of those features. Pity.

However,

> Problem statement:  Originally I was trying to use MS
> Access as the query engine, however that will not support
> parameter queries.

Access does support parameter queries but in order to use them from Word you
have to connect using DDE - in Word 2000 you can do that by checking the
"Select method" box in Open Data Source. In Word 2002 and later you have to
check Word Tools|Options|General|"Confirm conversions at open" then go
through Select Data Source again.
--
Peter Jamieson - Word MVP

> Problem statement:  Originally I was trying to use MS
> Access as the query engine, however that will not support
[quoted text clipped - 14 lines]
>
> Tim
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.