View Single Post
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson
 
Posts: n/a
Default data source not showing

Generally speaking the way to see the most queries when selecting a
Mailmerge data source is to check Word Tools|Options|General|Confirm
conversions at open. After you select the Access .mdb in Select Data Source
you should select the DDE option in the dialog box that appears.

There are a number of reasons why Word does not "see" Access queries when
you are trying to select a Mailmerge data source, including:
a. the user may not have permission to use the query (e.g. if you are using
Workgroup security - Word defaults to using the "Admin" user unless you
specify otherwise, and it's not completely obvious how to do tthat
b. queries that use User-defined (Access VBA) functions cannot be used
unless you connect using DDE, but Word 2003 connects using OLEDB by default
c. parameter queries cannot be used unless you connect using DDE
d. queries that use a small number of functions (mainly some specialised
financial functions, I think) are not visible
e. "complex" query types such as Union queries probably won't be visible.
f. queries using wildcards (*,?,%,_) may not be visible or return any
results because of a conflict where Word is expecting to use the Jet SQL
wildcards (*,?) whereas the database may be set up to use the ANSI
wildcards, or vice versa.


Peter Jamieson

wrote in message
oups.com...
(Word & Access 2003 in Windows XP)

I was working today with someone who wanted to do a merge in Word,
using a data source from Access. I am very experienced in Access, and
so I helped her develop the right query in Access to create the dataset
she needed for her letters in Word.

When we went to Word and started the merge wizard, at the screen where
you identify your data source, I had no trouble finding the correct
database file, but my query didn't show in the list of tables and
queries. I tried over and over. I tried closing and reopening Word
and also the database, but every time ALL the tables and queries would
show in the list except the one that I'd just made for her.

Eventually, I just created the letter for her in Access with that query
as the data source, and she'll run the letters as reports from there.
I built in enough flexibility in Access for her to be able to use it
for a long time. But I want to help her understand how she can write
her own letters in Word and merge 'em with Access data.

Anyone know why this query would disappear every time I wanted to
identify it in the Word merge process, but it was right there in the
database?